@learncard/types 5.6.13 → 5.7.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.
package/dist/crypto.d.ts CHANGED
@@ -7,22 +7,22 @@ export declare const JWKValidator: z.ZodObject<{
7
7
  n: z.ZodOptional<z.ZodString>;
8
8
  d: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- y?: string | undefined;
11
- n?: string | undefined;
12
- d?: string | undefined;
13
10
  kty: string;
14
11
  crv: string;
15
12
  x: string;
16
- }, {
17
13
  y?: string | undefined;
18
14
  n?: string | undefined;
19
15
  d?: string | undefined;
16
+ }, {
20
17
  kty: string;
21
18
  crv: string;
22
19
  x: string;
20
+ y?: string | undefined;
21
+ n?: string | undefined;
22
+ d?: string | undefined;
23
23
  }>;
24
24
  export type JWK = z.infer<typeof JWKValidator>;
25
- export declare const JWKWithPrivateKeyValidator: z.ZodObject<z.extendShape<Omit<{
25
+ export declare const JWKWithPrivateKeyValidator: z.ZodObject<z.objectUtil.extendShape<Omit<{
26
26
  kty: z.ZodString;
27
27
  crv: z.ZodString;
28
28
  x: z.ZodString;
@@ -32,19 +32,19 @@ export declare const JWKWithPrivateKeyValidator: z.ZodObject<z.extendShape<Omit<
32
32
  }, "d">, {
33
33
  d: z.ZodString;
34
34
  }>, "strip", z.ZodTypeAny, {
35
- y?: string | undefined;
36
- n?: string | undefined;
37
35
  kty: string;
38
36
  crv: string;
39
37
  x: string;
40
38
  d: string;
41
- }, {
42
39
  y?: string | undefined;
43
40
  n?: string | undefined;
41
+ }, {
44
42
  kty: string;
45
43
  crv: string;
46
44
  x: string;
47
45
  d: string;
46
+ y?: string | undefined;
47
+ n?: string | undefined;
48
48
  }>;
49
49
  export type JWKWithPrivateKey = z.infer<typeof JWKWithPrivateKeyValidator>;
50
50
  export declare const JWERecipientHeaderValidator: z.ZodObject<{
@@ -77,6 +77,9 @@ export declare const JWERecipientHeaderValidator: z.ZodObject<{
77
77
  apv: z.ZodOptional<z.ZodString>;
78
78
  apu: z.ZodOptional<z.ZodString>;
79
79
  }, "strip", z.ZodTypeAny, {
80
+ alg: string;
81
+ iv: string;
82
+ tag: string;
80
83
  epk?: {
81
84
  kty?: string | undefined;
82
85
  crv?: string | undefined;
@@ -88,10 +91,10 @@ export declare const JWERecipientHeaderValidator: z.ZodObject<{
88
91
  kid?: string | undefined;
89
92
  apv?: string | undefined;
90
93
  apu?: string | undefined;
94
+ }, {
91
95
  alg: string;
92
96
  iv: string;
93
97
  tag: string;
94
- }, {
95
98
  epk?: {
96
99
  kty?: string | undefined;
97
100
  crv?: string | undefined;
@@ -103,9 +106,6 @@ export declare const JWERecipientHeaderValidator: z.ZodObject<{
103
106
  kid?: string | undefined;
104
107
  apv?: string | undefined;
105
108
  apu?: string | undefined;
106
- alg: string;
107
- iv: string;
108
- tag: string;
109
109
  }>;
110
110
  export type JWERecipientHeader = z.infer<typeof JWERecipientHeaderValidator>;
111
111
  export declare const JWERecipientValidator: z.ZodObject<{
@@ -139,6 +139,9 @@ export declare const JWERecipientValidator: z.ZodObject<{
139
139
  apv: z.ZodOptional<z.ZodString>;
140
140
  apu: z.ZodOptional<z.ZodString>;
141
141
  }, "strip", z.ZodTypeAny, {
142
+ alg: string;
143
+ iv: string;
144
+ tag: string;
142
145
  epk?: {
143
146
  kty?: string | undefined;
144
147
  crv?: string | undefined;
@@ -150,10 +153,10 @@ export declare const JWERecipientValidator: z.ZodObject<{
150
153
  kid?: string | undefined;
151
154
  apv?: string | undefined;
152
155
  apu?: string | undefined;
156
+ }, {
153
157
  alg: string;
154
158
  iv: string;
155
159
  tag: string;
156
- }, {
157
160
  epk?: {
158
161
  kty?: string | undefined;
159
162
  crv?: string | undefined;
@@ -165,13 +168,13 @@ export declare const JWERecipientValidator: z.ZodObject<{
165
168
  kid?: string | undefined;
166
169
  apv?: string | undefined;
167
170
  apu?: string | undefined;
168
- alg: string;
169
- iv: string;
170
- tag: string;
171
171
  }>;
172
172
  encrypted_key: z.ZodString;
173
173
  }, "strip", z.ZodTypeAny, {
174
174
  header: {
175
+ alg: string;
176
+ iv: string;
177
+ tag: string;
175
178
  epk?: {
176
179
  kty?: string | undefined;
177
180
  crv?: string | undefined;
@@ -183,13 +186,13 @@ export declare const JWERecipientValidator: z.ZodObject<{
183
186
  kid?: string | undefined;
184
187
  apv?: string | undefined;
185
188
  apu?: string | undefined;
186
- alg: string;
187
- iv: string;
188
- tag: string;
189
189
  };
190
190
  encrypted_key: string;
191
191
  }, {
192
192
  header: {
193
+ alg: string;
194
+ iv: string;
195
+ tag: string;
193
196
  epk?: {
194
197
  kty?: string | undefined;
195
198
  crv?: string | undefined;
@@ -201,9 +204,6 @@ export declare const JWERecipientValidator: z.ZodObject<{
201
204
  kid?: string | undefined;
202
205
  apv?: string | undefined;
203
206
  apu?: string | undefined;
204
- alg: string;
205
- iv: string;
206
- tag: string;
207
207
  };
208
208
  encrypted_key: string;
209
209
  }>;
@@ -245,6 +245,9 @@ export declare const JWEValidator: z.ZodObject<{
245
245
  apv: z.ZodOptional<z.ZodString>;
246
246
  apu: z.ZodOptional<z.ZodString>;
247
247
  }, "strip", z.ZodTypeAny, {
248
+ alg: string;
249
+ iv: string;
250
+ tag: string;
248
251
  epk?: {
249
252
  kty?: string | undefined;
250
253
  crv?: string | undefined;
@@ -256,10 +259,10 @@ export declare const JWEValidator: z.ZodObject<{
256
259
  kid?: string | undefined;
257
260
  apv?: string | undefined;
258
261
  apu?: string | undefined;
262
+ }, {
259
263
  alg: string;
260
264
  iv: string;
261
265
  tag: string;
262
- }, {
263
266
  epk?: {
264
267
  kty?: string | undefined;
265
268
  crv?: string | undefined;
@@ -271,13 +274,13 @@ export declare const JWEValidator: z.ZodObject<{
271
274
  kid?: string | undefined;
272
275
  apv?: string | undefined;
273
276
  apu?: string | undefined;
274
- alg: string;
275
- iv: string;
276
- tag: string;
277
277
  }>;
278
278
  encrypted_key: z.ZodString;
279
279
  }, "strip", z.ZodTypeAny, {
280
280
  header: {
281
+ alg: string;
282
+ iv: string;
283
+ tag: string;
281
284
  epk?: {
282
285
  kty?: string | undefined;
283
286
  crv?: string | undefined;
@@ -289,13 +292,13 @@ export declare const JWEValidator: z.ZodObject<{
289
292
  kid?: string | undefined;
290
293
  apv?: string | undefined;
291
294
  apu?: string | undefined;
292
- alg: string;
293
- iv: string;
294
- tag: string;
295
295
  };
296
296
  encrypted_key: string;
297
297
  }, {
298
298
  header: {
299
+ alg: string;
300
+ iv: string;
301
+ tag: string;
299
302
  epk?: {
300
303
  kty?: string | undefined;
301
304
  crv?: string | undefined;
@@ -307,16 +310,20 @@ export declare const JWEValidator: z.ZodObject<{
307
310
  kid?: string | undefined;
308
311
  apv?: string | undefined;
309
312
  apu?: string | undefined;
310
- alg: string;
311
- iv: string;
312
- tag: string;
313
313
  };
314
314
  encrypted_key: string;
315
315
  }>, "many">>;
316
316
  }, "strip", z.ZodTypeAny, {
317
+ iv: string;
318
+ tag: string;
319
+ protected: string;
320
+ ciphertext: string;
317
321
  aad?: string | undefined;
318
322
  recipients?: {
319
323
  header: {
324
+ alg: string;
325
+ iv: string;
326
+ tag: string;
320
327
  epk?: {
321
328
  kty?: string | undefined;
322
329
  crv?: string | undefined;
@@ -328,20 +335,20 @@ export declare const JWEValidator: z.ZodObject<{
328
335
  kid?: string | undefined;
329
336
  apv?: string | undefined;
330
337
  apu?: string | undefined;
331
- alg: string;
332
- iv: string;
333
- tag: string;
334
338
  };
335
339
  encrypted_key: string;
336
340
  }[] | undefined;
341
+ }, {
337
342
  iv: string;
338
343
  tag: string;
339
344
  protected: string;
340
345
  ciphertext: string;
341
- }, {
342
346
  aad?: string | undefined;
343
347
  recipients?: {
344
348
  header: {
349
+ alg: string;
350
+ iv: string;
351
+ tag: string;
345
352
  epk?: {
346
353
  kty?: string | undefined;
347
354
  crv?: string | undefined;
@@ -353,16 +360,9 @@ export declare const JWEValidator: z.ZodObject<{
353
360
  kid?: string | undefined;
354
361
  apv?: string | undefined;
355
362
  apu?: string | undefined;
356
- alg: string;
357
- iv: string;
358
- tag: string;
359
363
  };
360
364
  encrypted_key: string;
361
365
  }[] | undefined;
362
- iv: string;
363
- tag: string;
364
- protected: string;
365
- ciphertext: string;
366
366
  }>;
367
367
  export type JWE = z.infer<typeof JWEValidator>;
368
368
  //# sourceMappingURL=crypto.d.ts.map