@learncard/types 5.3.0 → 5.3.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lcn.d.ts +3 -3
- package/dist/learncloud.d.ts +506 -0
- package/dist/types.cjs.development.js +9 -5
- package/dist/types.cjs.development.js.map +2 -2
- package/dist/types.cjs.production.min.js +1 -1
- package/dist/types.cjs.production.min.js.map +3 -3
- package/dist/types.esm.js +9 -5
- package/dist/types.esm.js.map +2 -2
- package/package.json +1 -1
package/dist/lcn.d.ts
CHANGED
@@ -96,9 +96,9 @@ export declare const BoostRecipientValidator: z.ZodObject<{
|
|
96
96
|
did: string;
|
97
97
|
}>;
|
98
98
|
from: z.ZodString;
|
99
|
-
received: z.ZodString
|
99
|
+
received: z.ZodOptional<z.ZodString>;
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
101
|
-
received
|
101
|
+
received?: string | undefined;
|
102
102
|
to: {
|
103
103
|
image?: string | undefined;
|
104
104
|
email?: string | undefined;
|
@@ -110,7 +110,7 @@ export declare const BoostRecipientValidator: z.ZodObject<{
|
|
110
110
|
};
|
111
111
|
from: string;
|
112
112
|
}, {
|
113
|
-
received
|
113
|
+
received?: string | undefined;
|
114
114
|
to: {
|
115
115
|
image?: string | undefined;
|
116
116
|
email?: string | undefined;
|
package/dist/learncloud.d.ts
CHANGED
@@ -1,4 +1,510 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export declare const EncryptedRecordValidator: z.ZodObject<{
|
3
|
+
encryptedRecord: z.ZodObject<{
|
4
|
+
protected: z.ZodString;
|
5
|
+
iv: z.ZodString;
|
6
|
+
ciphertext: z.ZodString;
|
7
|
+
tag: z.ZodString;
|
8
|
+
aad: z.ZodOptional<z.ZodString>;
|
9
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
10
|
+
header: z.ZodObject<{
|
11
|
+
alg: z.ZodString;
|
12
|
+
iv: z.ZodString;
|
13
|
+
tag: z.ZodString;
|
14
|
+
epk: z.ZodOptional<z.ZodObject<{
|
15
|
+
kty: z.ZodOptional<z.ZodString>;
|
16
|
+
crv: z.ZodOptional<z.ZodString>;
|
17
|
+
x: z.ZodOptional<z.ZodString>;
|
18
|
+
y: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
19
|
+
n: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
20
|
+
d: z.ZodOptional<z.ZodString>;
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
22
|
+
kty?: string | undefined;
|
23
|
+
crv?: string | undefined;
|
24
|
+
x?: string | undefined;
|
25
|
+
y?: string | undefined;
|
26
|
+
n?: string | undefined;
|
27
|
+
d?: string | undefined;
|
28
|
+
}, {
|
29
|
+
kty?: string | undefined;
|
30
|
+
crv?: string | undefined;
|
31
|
+
x?: string | undefined;
|
32
|
+
y?: string | undefined;
|
33
|
+
n?: string | undefined;
|
34
|
+
d?: string | undefined;
|
35
|
+
}>>;
|
36
|
+
kid: z.ZodOptional<z.ZodString>;
|
37
|
+
apv: z.ZodOptional<z.ZodString>;
|
38
|
+
apu: z.ZodOptional<z.ZodString>;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
epk?: {
|
41
|
+
kty?: string | undefined;
|
42
|
+
crv?: string | undefined;
|
43
|
+
x?: string | undefined;
|
44
|
+
y?: string | undefined;
|
45
|
+
n?: string | undefined;
|
46
|
+
d?: string | undefined;
|
47
|
+
} | undefined;
|
48
|
+
kid?: string | undefined;
|
49
|
+
apv?: string | undefined;
|
50
|
+
apu?: string | undefined;
|
51
|
+
alg: string;
|
52
|
+
iv: string;
|
53
|
+
tag: string;
|
54
|
+
}, {
|
55
|
+
epk?: {
|
56
|
+
kty?: string | undefined;
|
57
|
+
crv?: string | undefined;
|
58
|
+
x?: string | undefined;
|
59
|
+
y?: string | undefined;
|
60
|
+
n?: string | undefined;
|
61
|
+
d?: string | undefined;
|
62
|
+
} | undefined;
|
63
|
+
kid?: string | undefined;
|
64
|
+
apv?: string | undefined;
|
65
|
+
apu?: string | undefined;
|
66
|
+
alg: string;
|
67
|
+
iv: string;
|
68
|
+
tag: string;
|
69
|
+
}>;
|
70
|
+
encrypted_key: z.ZodString;
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
72
|
+
header: {
|
73
|
+
epk?: {
|
74
|
+
kty?: string | undefined;
|
75
|
+
crv?: string | undefined;
|
76
|
+
x?: string | undefined;
|
77
|
+
y?: string | undefined;
|
78
|
+
n?: string | undefined;
|
79
|
+
d?: string | undefined;
|
80
|
+
} | undefined;
|
81
|
+
kid?: string | undefined;
|
82
|
+
apv?: string | undefined;
|
83
|
+
apu?: string | undefined;
|
84
|
+
alg: string;
|
85
|
+
iv: string;
|
86
|
+
tag: string;
|
87
|
+
};
|
88
|
+
encrypted_key: string;
|
89
|
+
}, {
|
90
|
+
header: {
|
91
|
+
epk?: {
|
92
|
+
kty?: string | undefined;
|
93
|
+
crv?: string | undefined;
|
94
|
+
x?: string | undefined;
|
95
|
+
y?: string | undefined;
|
96
|
+
n?: string | undefined;
|
97
|
+
d?: string | undefined;
|
98
|
+
} | undefined;
|
99
|
+
kid?: string | undefined;
|
100
|
+
apv?: string | undefined;
|
101
|
+
apu?: string | undefined;
|
102
|
+
alg: string;
|
103
|
+
iv: string;
|
104
|
+
tag: string;
|
105
|
+
};
|
106
|
+
encrypted_key: string;
|
107
|
+
}>, "many">>;
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
109
|
+
aad?: string | undefined;
|
110
|
+
recipients?: {
|
111
|
+
header: {
|
112
|
+
epk?: {
|
113
|
+
kty?: string | undefined;
|
114
|
+
crv?: string | undefined;
|
115
|
+
x?: string | undefined;
|
116
|
+
y?: string | undefined;
|
117
|
+
n?: string | undefined;
|
118
|
+
d?: string | undefined;
|
119
|
+
} | undefined;
|
120
|
+
kid?: string | undefined;
|
121
|
+
apv?: string | undefined;
|
122
|
+
apu?: string | undefined;
|
123
|
+
alg: string;
|
124
|
+
iv: string;
|
125
|
+
tag: string;
|
126
|
+
};
|
127
|
+
encrypted_key: string;
|
128
|
+
}[] | undefined;
|
129
|
+
iv: string;
|
130
|
+
tag: string;
|
131
|
+
protected: string;
|
132
|
+
ciphertext: string;
|
133
|
+
}, {
|
134
|
+
aad?: string | undefined;
|
135
|
+
recipients?: {
|
136
|
+
header: {
|
137
|
+
epk?: {
|
138
|
+
kty?: string | undefined;
|
139
|
+
crv?: string | undefined;
|
140
|
+
x?: string | undefined;
|
141
|
+
y?: string | undefined;
|
142
|
+
n?: string | undefined;
|
143
|
+
d?: string | undefined;
|
144
|
+
} | undefined;
|
145
|
+
kid?: string | undefined;
|
146
|
+
apv?: string | undefined;
|
147
|
+
apu?: string | undefined;
|
148
|
+
alg: string;
|
149
|
+
iv: string;
|
150
|
+
tag: string;
|
151
|
+
};
|
152
|
+
encrypted_key: string;
|
153
|
+
}[] | undefined;
|
154
|
+
iv: string;
|
155
|
+
tag: string;
|
156
|
+
protected: string;
|
157
|
+
ciphertext: string;
|
158
|
+
}>;
|
159
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
160
|
+
}, "strip", z.ZodAny, {
|
161
|
+
[x: string]: any;
|
162
|
+
encryptedRecord: {
|
163
|
+
aad?: string | undefined;
|
164
|
+
recipients?: {
|
165
|
+
header: {
|
166
|
+
epk?: {
|
167
|
+
kty?: string | undefined;
|
168
|
+
crv?: string | undefined;
|
169
|
+
x?: string | undefined;
|
170
|
+
y?: string | undefined;
|
171
|
+
n?: string | undefined;
|
172
|
+
d?: string | undefined;
|
173
|
+
} | undefined;
|
174
|
+
kid?: string | undefined;
|
175
|
+
apv?: string | undefined;
|
176
|
+
apu?: string | undefined;
|
177
|
+
alg: string;
|
178
|
+
iv: string;
|
179
|
+
tag: string;
|
180
|
+
};
|
181
|
+
encrypted_key: string;
|
182
|
+
}[] | undefined;
|
183
|
+
iv: string;
|
184
|
+
tag: string;
|
185
|
+
protected: string;
|
186
|
+
ciphertext: string;
|
187
|
+
};
|
188
|
+
fields: string[];
|
189
|
+
}, {
|
190
|
+
[x: string]: any;
|
191
|
+
encryptedRecord: {
|
192
|
+
aad?: string | undefined;
|
193
|
+
recipients?: {
|
194
|
+
header: {
|
195
|
+
epk?: {
|
196
|
+
kty?: string | undefined;
|
197
|
+
crv?: string | undefined;
|
198
|
+
x?: string | undefined;
|
199
|
+
y?: string | undefined;
|
200
|
+
n?: string | undefined;
|
201
|
+
d?: string | undefined;
|
202
|
+
} | undefined;
|
203
|
+
kid?: string | undefined;
|
204
|
+
apv?: string | undefined;
|
205
|
+
apu?: string | undefined;
|
206
|
+
alg: string;
|
207
|
+
iv: string;
|
208
|
+
tag: string;
|
209
|
+
};
|
210
|
+
encrypted_key: string;
|
211
|
+
}[] | undefined;
|
212
|
+
iv: string;
|
213
|
+
tag: string;
|
214
|
+
protected: string;
|
215
|
+
ciphertext: string;
|
216
|
+
};
|
217
|
+
fields: string[];
|
218
|
+
}>;
|
219
|
+
export type EncryptedRecord = z.infer<typeof EncryptedRecordValidator>;
|
220
|
+
export declare const PaginatedEncryptedRecordsValidator: z.ZodObject<{
|
221
|
+
cursor: z.ZodOptional<z.ZodString>;
|
222
|
+
hasMore: z.ZodBoolean;
|
223
|
+
records: z.ZodArray<z.ZodObject<{
|
224
|
+
encryptedRecord: z.ZodObject<{
|
225
|
+
protected: z.ZodString;
|
226
|
+
iv: z.ZodString;
|
227
|
+
ciphertext: z.ZodString;
|
228
|
+
tag: z.ZodString;
|
229
|
+
aad: z.ZodOptional<z.ZodString>;
|
230
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
231
|
+
header: z.ZodObject<{
|
232
|
+
alg: z.ZodString;
|
233
|
+
iv: z.ZodString;
|
234
|
+
tag: z.ZodString;
|
235
|
+
epk: z.ZodOptional<z.ZodObject<{
|
236
|
+
kty: z.ZodOptional<z.ZodString>;
|
237
|
+
crv: z.ZodOptional<z.ZodString>;
|
238
|
+
x: z.ZodOptional<z.ZodString>;
|
239
|
+
y: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
240
|
+
n: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
241
|
+
d: z.ZodOptional<z.ZodString>;
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
243
|
+
kty?: string | undefined;
|
244
|
+
crv?: string | undefined;
|
245
|
+
x?: string | undefined;
|
246
|
+
y?: string | undefined;
|
247
|
+
n?: string | undefined;
|
248
|
+
d?: string | undefined;
|
249
|
+
}, {
|
250
|
+
kty?: string | undefined;
|
251
|
+
crv?: string | undefined;
|
252
|
+
x?: string | undefined;
|
253
|
+
y?: string | undefined;
|
254
|
+
n?: string | undefined;
|
255
|
+
d?: string | undefined;
|
256
|
+
}>>;
|
257
|
+
kid: z.ZodOptional<z.ZodString>;
|
258
|
+
apv: z.ZodOptional<z.ZodString>;
|
259
|
+
apu: z.ZodOptional<z.ZodString>;
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
261
|
+
epk?: {
|
262
|
+
kty?: string | undefined;
|
263
|
+
crv?: string | undefined;
|
264
|
+
x?: string | undefined;
|
265
|
+
y?: string | undefined;
|
266
|
+
n?: string | undefined;
|
267
|
+
d?: string | undefined;
|
268
|
+
} | undefined;
|
269
|
+
kid?: string | undefined;
|
270
|
+
apv?: string | undefined;
|
271
|
+
apu?: string | undefined;
|
272
|
+
alg: string;
|
273
|
+
iv: string;
|
274
|
+
tag: string;
|
275
|
+
}, {
|
276
|
+
epk?: {
|
277
|
+
kty?: string | undefined;
|
278
|
+
crv?: string | undefined;
|
279
|
+
x?: string | undefined;
|
280
|
+
y?: string | undefined;
|
281
|
+
n?: string | undefined;
|
282
|
+
d?: string | undefined;
|
283
|
+
} | undefined;
|
284
|
+
kid?: string | undefined;
|
285
|
+
apv?: string | undefined;
|
286
|
+
apu?: string | undefined;
|
287
|
+
alg: string;
|
288
|
+
iv: string;
|
289
|
+
tag: string;
|
290
|
+
}>;
|
291
|
+
encrypted_key: z.ZodString;
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
293
|
+
header: {
|
294
|
+
epk?: {
|
295
|
+
kty?: string | undefined;
|
296
|
+
crv?: string | undefined;
|
297
|
+
x?: string | undefined;
|
298
|
+
y?: string | undefined;
|
299
|
+
n?: string | undefined;
|
300
|
+
d?: string | undefined;
|
301
|
+
} | undefined;
|
302
|
+
kid?: string | undefined;
|
303
|
+
apv?: string | undefined;
|
304
|
+
apu?: string | undefined;
|
305
|
+
alg: string;
|
306
|
+
iv: string;
|
307
|
+
tag: string;
|
308
|
+
};
|
309
|
+
encrypted_key: string;
|
310
|
+
}, {
|
311
|
+
header: {
|
312
|
+
epk?: {
|
313
|
+
kty?: string | undefined;
|
314
|
+
crv?: string | undefined;
|
315
|
+
x?: string | undefined;
|
316
|
+
y?: string | undefined;
|
317
|
+
n?: string | undefined;
|
318
|
+
d?: string | undefined;
|
319
|
+
} | undefined;
|
320
|
+
kid?: string | undefined;
|
321
|
+
apv?: string | undefined;
|
322
|
+
apu?: string | undefined;
|
323
|
+
alg: string;
|
324
|
+
iv: string;
|
325
|
+
tag: string;
|
326
|
+
};
|
327
|
+
encrypted_key: string;
|
328
|
+
}>, "many">>;
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
330
|
+
aad?: string | undefined;
|
331
|
+
recipients?: {
|
332
|
+
header: {
|
333
|
+
epk?: {
|
334
|
+
kty?: string | undefined;
|
335
|
+
crv?: string | undefined;
|
336
|
+
x?: string | undefined;
|
337
|
+
y?: string | undefined;
|
338
|
+
n?: string | undefined;
|
339
|
+
d?: string | undefined;
|
340
|
+
} | undefined;
|
341
|
+
kid?: string | undefined;
|
342
|
+
apv?: string | undefined;
|
343
|
+
apu?: string | undefined;
|
344
|
+
alg: string;
|
345
|
+
iv: string;
|
346
|
+
tag: string;
|
347
|
+
};
|
348
|
+
encrypted_key: string;
|
349
|
+
}[] | undefined;
|
350
|
+
iv: string;
|
351
|
+
tag: string;
|
352
|
+
protected: string;
|
353
|
+
ciphertext: string;
|
354
|
+
}, {
|
355
|
+
aad?: string | undefined;
|
356
|
+
recipients?: {
|
357
|
+
header: {
|
358
|
+
epk?: {
|
359
|
+
kty?: string | undefined;
|
360
|
+
crv?: string | undefined;
|
361
|
+
x?: string | undefined;
|
362
|
+
y?: string | undefined;
|
363
|
+
n?: string | undefined;
|
364
|
+
d?: string | undefined;
|
365
|
+
} | undefined;
|
366
|
+
kid?: string | undefined;
|
367
|
+
apv?: string | undefined;
|
368
|
+
apu?: string | undefined;
|
369
|
+
alg: string;
|
370
|
+
iv: string;
|
371
|
+
tag: string;
|
372
|
+
};
|
373
|
+
encrypted_key: string;
|
374
|
+
}[] | undefined;
|
375
|
+
iv: string;
|
376
|
+
tag: string;
|
377
|
+
protected: string;
|
378
|
+
ciphertext: string;
|
379
|
+
}>;
|
380
|
+
fields: z.ZodArray<z.ZodString, "many">;
|
381
|
+
}, "strip", z.ZodAny, {
|
382
|
+
[x: string]: any;
|
383
|
+
encryptedRecord: {
|
384
|
+
aad?: string | undefined;
|
385
|
+
recipients?: {
|
386
|
+
header: {
|
387
|
+
epk?: {
|
388
|
+
kty?: string | undefined;
|
389
|
+
crv?: string | undefined;
|
390
|
+
x?: string | undefined;
|
391
|
+
y?: string | undefined;
|
392
|
+
n?: string | undefined;
|
393
|
+
d?: string | undefined;
|
394
|
+
} | undefined;
|
395
|
+
kid?: string | undefined;
|
396
|
+
apv?: string | undefined;
|
397
|
+
apu?: string | undefined;
|
398
|
+
alg: string;
|
399
|
+
iv: string;
|
400
|
+
tag: string;
|
401
|
+
};
|
402
|
+
encrypted_key: string;
|
403
|
+
}[] | undefined;
|
404
|
+
iv: string;
|
405
|
+
tag: string;
|
406
|
+
protected: string;
|
407
|
+
ciphertext: string;
|
408
|
+
};
|
409
|
+
fields: string[];
|
410
|
+
}, {
|
411
|
+
[x: string]: any;
|
412
|
+
encryptedRecord: {
|
413
|
+
aad?: string | undefined;
|
414
|
+
recipients?: {
|
415
|
+
header: {
|
416
|
+
epk?: {
|
417
|
+
kty?: string | undefined;
|
418
|
+
crv?: string | undefined;
|
419
|
+
x?: string | undefined;
|
420
|
+
y?: string | undefined;
|
421
|
+
n?: string | undefined;
|
422
|
+
d?: string | undefined;
|
423
|
+
} | undefined;
|
424
|
+
kid?: string | undefined;
|
425
|
+
apv?: string | undefined;
|
426
|
+
apu?: string | undefined;
|
427
|
+
alg: string;
|
428
|
+
iv: string;
|
429
|
+
tag: string;
|
430
|
+
};
|
431
|
+
encrypted_key: string;
|
432
|
+
}[] | undefined;
|
433
|
+
iv: string;
|
434
|
+
tag: string;
|
435
|
+
protected: string;
|
436
|
+
ciphertext: string;
|
437
|
+
};
|
438
|
+
fields: string[];
|
439
|
+
}>, "many">;
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
441
|
+
cursor?: string | undefined;
|
442
|
+
hasMore: boolean;
|
443
|
+
records: {
|
444
|
+
[x: string]: any;
|
445
|
+
encryptedRecord: {
|
446
|
+
aad?: string | undefined;
|
447
|
+
recipients?: {
|
448
|
+
header: {
|
449
|
+
epk?: {
|
450
|
+
kty?: string | undefined;
|
451
|
+
crv?: string | undefined;
|
452
|
+
x?: string | undefined;
|
453
|
+
y?: string | undefined;
|
454
|
+
n?: string | undefined;
|
455
|
+
d?: string | undefined;
|
456
|
+
} | undefined;
|
457
|
+
kid?: string | undefined;
|
458
|
+
apv?: string | undefined;
|
459
|
+
apu?: string | undefined;
|
460
|
+
alg: string;
|
461
|
+
iv: string;
|
462
|
+
tag: string;
|
463
|
+
};
|
464
|
+
encrypted_key: string;
|
465
|
+
}[] | undefined;
|
466
|
+
iv: string;
|
467
|
+
tag: string;
|
468
|
+
protected: string;
|
469
|
+
ciphertext: string;
|
470
|
+
};
|
471
|
+
fields: string[];
|
472
|
+
}[];
|
473
|
+
}, {
|
474
|
+
cursor?: string | undefined;
|
475
|
+
hasMore: boolean;
|
476
|
+
records: {
|
477
|
+
[x: string]: any;
|
478
|
+
encryptedRecord: {
|
479
|
+
aad?: string | undefined;
|
480
|
+
recipients?: {
|
481
|
+
header: {
|
482
|
+
epk?: {
|
483
|
+
kty?: string | undefined;
|
484
|
+
crv?: string | undefined;
|
485
|
+
x?: string | undefined;
|
486
|
+
y?: string | undefined;
|
487
|
+
n?: string | undefined;
|
488
|
+
d?: string | undefined;
|
489
|
+
} | undefined;
|
490
|
+
kid?: string | undefined;
|
491
|
+
apv?: string | undefined;
|
492
|
+
apu?: string | undefined;
|
493
|
+
alg: string;
|
494
|
+
iv: string;
|
495
|
+
tag: string;
|
496
|
+
};
|
497
|
+
encrypted_key: string;
|
498
|
+
}[] | undefined;
|
499
|
+
iv: string;
|
500
|
+
tag: string;
|
501
|
+
protected: string;
|
502
|
+
ciphertext: string;
|
503
|
+
};
|
504
|
+
fields: string[];
|
505
|
+
}[];
|
506
|
+
}>;
|
507
|
+
export type PaginatedEncryptedRecordsType = z.infer<typeof PaginatedEncryptedRecordsValidator>;
|
2
508
|
export declare const EncryptedCredentialRecordValidator: z.ZodObject<{
|
3
509
|
encryptedRecord: z.ZodObject<{
|
4
510
|
protected: z.ZodString;
|
@@ -39,6 +39,7 @@ __export(src_exports, {
|
|
39
39
|
CredentialSubjectValidator: () => CredentialSubjectValidator,
|
40
40
|
CriteriaValidator: () => CriteriaValidator,
|
41
41
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
|
42
|
+
EncryptedRecordValidator: () => EncryptedRecordValidator,
|
42
43
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
43
44
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
44
45
|
EvidenceValidator: () => EvidenceValidator,
|
@@ -64,6 +65,7 @@ __export(src_exports, {
|
|
64
65
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
65
66
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
66
67
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
68
|
+
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
67
69
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
68
70
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
69
71
|
ProfileValidator: () => ProfileValidator,
|
@@ -3906,11 +3908,13 @@ var JWEValidator = mod.object({
|
|
3906
3908
|
});
|
3907
3909
|
|
3908
3910
|
// src/learncloud.ts
|
3909
|
-
var
|
3910
|
-
|
3911
|
-
|
3911
|
+
var EncryptedRecordValidator = mod.object({ encryptedRecord: JWEValidator, fields: mod.string().array() }).catchall(mod.any());
|
3912
|
+
var PaginatedEncryptedRecordsValidator = PaginationResponseValidator.extend({
|
3913
|
+
records: EncryptedRecordValidator.array()
|
3914
|
+
});
|
3915
|
+
var EncryptedCredentialRecordValidator = EncryptedRecordValidator.extend({
|
3912
3916
|
id: mod.string()
|
3913
|
-
})
|
3917
|
+
});
|
3914
3918
|
var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.extend({
|
3915
3919
|
records: EncryptedCredentialRecordValidator.array()
|
3916
3920
|
});
|
@@ -3949,7 +3953,7 @@ var BoostValidator = mod.object({
|
|
3949
3953
|
var BoostRecipientValidator = mod.object({
|
3950
3954
|
to: LCNProfileValidator,
|
3951
3955
|
from: mod.string(),
|
3952
|
-
received: mod.string()
|
3956
|
+
received: mod.string().optional()
|
3953
3957
|
});
|
3954
3958
|
var LCNNotificationTypeEnumValidator = mod.enum([
|
3955
3959
|
"CONNECTION_REQUEST",
|