@learncard/types 5.2.6 → 5.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/dist/crypto.d.ts +0 -342
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -7
- package/dist/lcn.d.ts +0 -351
- package/dist/learncard.d.ts +0 -627
- package/dist/obv3.d.ts +0 -18265
- package/dist/types.cjs.development.js +0 -534
- package/dist/types.cjs.development.js.map +0 -7
- package/dist/types.cjs.production.min.js +0 -1
- package/dist/types.cjs.production.min.js.map +0 -7
- package/dist/types.esm.js +0 -512
- package/dist/types.esm.js.map +0 -7
- package/dist/vc.d.ts +0 -4108
package/dist/lcn.d.ts
DELETED
@@ -1,351 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare const LCNProfileValidator: z.ZodObject<{
|
3
|
-
profileId: z.ZodString;
|
4
|
-
displayName: z.ZodDefault<z.ZodString>;
|
5
|
-
did: z.ZodString;
|
6
|
-
email: z.ZodOptional<z.ZodString>;
|
7
|
-
image: z.ZodOptional<z.ZodString>;
|
8
|
-
isServiceProfile: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
9
|
-
notificationsWebhook: z.ZodOptional<z.ZodString>;
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
11
|
-
image?: string | undefined;
|
12
|
-
email?: string | undefined;
|
13
|
-
isServiceProfile?: boolean | undefined;
|
14
|
-
notificationsWebhook?: string | undefined;
|
15
|
-
profileId: string;
|
16
|
-
displayName: string;
|
17
|
-
did: string;
|
18
|
-
}, {
|
19
|
-
image?: string | undefined;
|
20
|
-
email?: string | undefined;
|
21
|
-
displayName?: string | undefined;
|
22
|
-
isServiceProfile?: boolean | undefined;
|
23
|
-
notificationsWebhook?: string | undefined;
|
24
|
-
profileId: string;
|
25
|
-
did: string;
|
26
|
-
}>;
|
27
|
-
export type LCNProfile = z.infer<typeof LCNProfileValidator>;
|
28
|
-
export declare const LCNProfileConnectionStatusEnum: z.ZodEnum<["CONNECTED", "PENDING_REQUEST_SENT", "PENDING_REQUEST_RECEIVED", "NOT_CONNECTED"]>;
|
29
|
-
export type LCNProfileConnectionStatusEnum = z.infer<typeof LCNProfileConnectionStatusEnum>;
|
30
|
-
export declare const SentCredentialInfoValidator: z.ZodObject<{
|
31
|
-
uri: z.ZodString;
|
32
|
-
to: z.ZodString;
|
33
|
-
from: z.ZodString;
|
34
|
-
sent: z.ZodString;
|
35
|
-
received: z.ZodOptional<z.ZodString>;
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
37
|
-
received?: string | undefined;
|
38
|
-
uri: string;
|
39
|
-
to: string;
|
40
|
-
from: string;
|
41
|
-
sent: string;
|
42
|
-
}, {
|
43
|
-
received?: string | undefined;
|
44
|
-
uri: string;
|
45
|
-
to: string;
|
46
|
-
from: string;
|
47
|
-
sent: string;
|
48
|
-
}>;
|
49
|
-
export type SentCredentialInfo = z.infer<typeof SentCredentialInfoValidator>;
|
50
|
-
export declare const LCNBoostStatus: z.ZodEnum<["DRAFT", "LIVE"]>;
|
51
|
-
export type LCNBoostStatusEnum = z.infer<typeof LCNBoostStatus>;
|
52
|
-
export declare const BoostValidator: z.ZodObject<{
|
53
|
-
uri: z.ZodString;
|
54
|
-
name: z.ZodOptional<z.ZodString>;
|
55
|
-
type: z.ZodOptional<z.ZodString>;
|
56
|
-
category: z.ZodOptional<z.ZodString>;
|
57
|
-
status: z.ZodOptional<z.ZodEnum<["DRAFT", "LIVE"]>>;
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
59
|
-
type?: string | undefined;
|
60
|
-
status?: "DRAFT" | "LIVE" | undefined;
|
61
|
-
name?: string | undefined;
|
62
|
-
category?: string | undefined;
|
63
|
-
uri: string;
|
64
|
-
}, {
|
65
|
-
type?: string | undefined;
|
66
|
-
status?: "DRAFT" | "LIVE" | undefined;
|
67
|
-
name?: string | undefined;
|
68
|
-
category?: string | undefined;
|
69
|
-
uri: string;
|
70
|
-
}>;
|
71
|
-
export type Boost = z.infer<typeof BoostValidator>;
|
72
|
-
export declare const BoostRecipientValidator: z.ZodObject<{
|
73
|
-
to: z.ZodObject<{
|
74
|
-
profileId: z.ZodString;
|
75
|
-
displayName: z.ZodDefault<z.ZodString>;
|
76
|
-
did: z.ZodString;
|
77
|
-
email: z.ZodOptional<z.ZodString>;
|
78
|
-
image: z.ZodOptional<z.ZodString>;
|
79
|
-
isServiceProfile: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
80
|
-
notificationsWebhook: z.ZodOptional<z.ZodString>;
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
82
|
-
image?: string | undefined;
|
83
|
-
email?: string | undefined;
|
84
|
-
isServiceProfile?: boolean | undefined;
|
85
|
-
notificationsWebhook?: string | undefined;
|
86
|
-
profileId: string;
|
87
|
-
displayName: string;
|
88
|
-
did: string;
|
89
|
-
}, {
|
90
|
-
image?: string | undefined;
|
91
|
-
email?: string | undefined;
|
92
|
-
displayName?: string | undefined;
|
93
|
-
isServiceProfile?: boolean | undefined;
|
94
|
-
notificationsWebhook?: string | undefined;
|
95
|
-
profileId: string;
|
96
|
-
did: string;
|
97
|
-
}>;
|
98
|
-
from: z.ZodString;
|
99
|
-
received: z.ZodString;
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
101
|
-
received: string;
|
102
|
-
to: {
|
103
|
-
image?: string | undefined;
|
104
|
-
email?: string | undefined;
|
105
|
-
isServiceProfile?: boolean | undefined;
|
106
|
-
notificationsWebhook?: string | undefined;
|
107
|
-
profileId: string;
|
108
|
-
displayName: string;
|
109
|
-
did: string;
|
110
|
-
};
|
111
|
-
from: string;
|
112
|
-
}, {
|
113
|
-
received: string;
|
114
|
-
to: {
|
115
|
-
image?: string | undefined;
|
116
|
-
email?: string | undefined;
|
117
|
-
displayName?: string | undefined;
|
118
|
-
isServiceProfile?: boolean | undefined;
|
119
|
-
notificationsWebhook?: string | undefined;
|
120
|
-
profileId: string;
|
121
|
-
did: string;
|
122
|
-
};
|
123
|
-
from: string;
|
124
|
-
}>;
|
125
|
-
export type BoostRecipientInfo = z.infer<typeof BoostRecipientValidator>;
|
126
|
-
export declare const LCNNotificationTypeEnumValidator: z.ZodEnum<["CONNECTION_REQUEST", "CONNECTION_ACCEPTED", "CREDENTIAL_RECEIVED", "CREDENTIAL_ACCEPTED", "BOOST_RECEIVED", "BOOST_ACCEPTED", "PRESENTATION_REQUEST", "PRESENTATION_RECEIVED"]>;
|
127
|
-
export type LCNNotificationTypeEnum = z.infer<typeof LCNNotificationTypeEnumValidator>;
|
128
|
-
export declare const LCNNotificationMessageValidator: z.ZodObject<{
|
129
|
-
title: z.ZodOptional<z.ZodString>;
|
130
|
-
body: z.ZodOptional<z.ZodString>;
|
131
|
-
}, "strip", z.ZodTypeAny, {
|
132
|
-
title?: string | undefined;
|
133
|
-
body?: string | undefined;
|
134
|
-
}, {
|
135
|
-
title?: string | undefined;
|
136
|
-
body?: string | undefined;
|
137
|
-
}>;
|
138
|
-
export type LCNNotificationMessage = z.infer<typeof LCNNotificationMessageValidator>;
|
139
|
-
export declare const LCNNotificationDataValidator: z.ZodObject<{
|
140
|
-
vcUris: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
141
|
-
vpUris: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
142
|
-
}, "strip", z.ZodTypeAny, {
|
143
|
-
vcUris?: string[] | undefined;
|
144
|
-
vpUris?: string[] | undefined;
|
145
|
-
}, {
|
146
|
-
vcUris?: string[] | undefined;
|
147
|
-
vpUris?: string[] | undefined;
|
148
|
-
}>;
|
149
|
-
export type LCNNotificationData = z.infer<typeof LCNNotificationDataValidator>;
|
150
|
-
export declare const LCNNotificationValidator: z.ZodObject<{
|
151
|
-
type: z.ZodEnum<["CONNECTION_REQUEST", "CONNECTION_ACCEPTED", "CREDENTIAL_RECEIVED", "CREDENTIAL_ACCEPTED", "BOOST_RECEIVED", "BOOST_ACCEPTED", "PRESENTATION_REQUEST", "PRESENTATION_RECEIVED"]>;
|
152
|
-
to: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
153
|
-
profileId: z.ZodString;
|
154
|
-
displayName: z.ZodDefault<z.ZodString>;
|
155
|
-
did: z.ZodString;
|
156
|
-
email: z.ZodOptional<z.ZodString>;
|
157
|
-
image: z.ZodOptional<z.ZodString>;
|
158
|
-
isServiceProfile: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
159
|
-
notificationsWebhook: z.ZodOptional<z.ZodString>;
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
161
|
-
image?: string | undefined;
|
162
|
-
email?: string | undefined;
|
163
|
-
isServiceProfile?: boolean | undefined;
|
164
|
-
notificationsWebhook?: string | undefined;
|
165
|
-
profileId: string;
|
166
|
-
displayName: string;
|
167
|
-
did: string;
|
168
|
-
}, {
|
169
|
-
image?: string | undefined;
|
170
|
-
email?: string | undefined;
|
171
|
-
displayName?: string | undefined;
|
172
|
-
isServiceProfile?: boolean | undefined;
|
173
|
-
notificationsWebhook?: string | undefined;
|
174
|
-
profileId: string;
|
175
|
-
did: string;
|
176
|
-
}>]>;
|
177
|
-
from: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
178
|
-
profileId: z.ZodString;
|
179
|
-
displayName: z.ZodDefault<z.ZodString>;
|
180
|
-
did: z.ZodString;
|
181
|
-
email: z.ZodOptional<z.ZodString>;
|
182
|
-
image: z.ZodOptional<z.ZodString>;
|
183
|
-
isServiceProfile: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
184
|
-
notificationsWebhook: z.ZodOptional<z.ZodString>;
|
185
|
-
}, "strip", z.ZodTypeAny, {
|
186
|
-
image?: string | undefined;
|
187
|
-
email?: string | undefined;
|
188
|
-
isServiceProfile?: boolean | undefined;
|
189
|
-
notificationsWebhook?: string | undefined;
|
190
|
-
profileId: string;
|
191
|
-
displayName: string;
|
192
|
-
did: string;
|
193
|
-
}, {
|
194
|
-
image?: string | undefined;
|
195
|
-
email?: string | undefined;
|
196
|
-
displayName?: string | undefined;
|
197
|
-
isServiceProfile?: boolean | undefined;
|
198
|
-
notificationsWebhook?: string | undefined;
|
199
|
-
profileId: string;
|
200
|
-
did: string;
|
201
|
-
}>]>;
|
202
|
-
message: z.ZodOptional<z.ZodObject<{
|
203
|
-
title: z.ZodOptional<z.ZodString>;
|
204
|
-
body: z.ZodOptional<z.ZodString>;
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
206
|
-
title?: string | undefined;
|
207
|
-
body?: string | undefined;
|
208
|
-
}, {
|
209
|
-
title?: string | undefined;
|
210
|
-
body?: string | undefined;
|
211
|
-
}>>;
|
212
|
-
data: z.ZodOptional<z.ZodObject<{
|
213
|
-
vcUris: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
214
|
-
vpUris: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
215
|
-
}, "strip", z.ZodTypeAny, {
|
216
|
-
vcUris?: string[] | undefined;
|
217
|
-
vpUris?: string[] | undefined;
|
218
|
-
}, {
|
219
|
-
vcUris?: string[] | undefined;
|
220
|
-
vpUris?: string[] | undefined;
|
221
|
-
}>>;
|
222
|
-
sent: z.ZodOptional<z.ZodString>;
|
223
|
-
}, "strip", z.ZodTypeAny, {
|
224
|
-
message?: {
|
225
|
-
title?: string | undefined;
|
226
|
-
body?: string | undefined;
|
227
|
-
} | undefined;
|
228
|
-
data?: {
|
229
|
-
vcUris?: string[] | undefined;
|
230
|
-
vpUris?: string[] | undefined;
|
231
|
-
} | undefined;
|
232
|
-
sent?: string | undefined;
|
233
|
-
type: "CONNECTION_REQUEST" | "CONNECTION_ACCEPTED" | "CREDENTIAL_RECEIVED" | "CREDENTIAL_ACCEPTED" | "BOOST_RECEIVED" | "BOOST_ACCEPTED" | "PRESENTATION_REQUEST" | "PRESENTATION_RECEIVED";
|
234
|
-
to: string | {
|
235
|
-
image?: string | undefined;
|
236
|
-
email?: string | undefined;
|
237
|
-
isServiceProfile?: boolean | undefined;
|
238
|
-
notificationsWebhook?: string | undefined;
|
239
|
-
profileId: string;
|
240
|
-
displayName: string;
|
241
|
-
did: string;
|
242
|
-
};
|
243
|
-
from: string | {
|
244
|
-
image?: string | undefined;
|
245
|
-
email?: string | undefined;
|
246
|
-
isServiceProfile?: boolean | undefined;
|
247
|
-
notificationsWebhook?: string | undefined;
|
248
|
-
profileId: string;
|
249
|
-
displayName: string;
|
250
|
-
did: string;
|
251
|
-
};
|
252
|
-
}, {
|
253
|
-
message?: {
|
254
|
-
title?: string | undefined;
|
255
|
-
body?: string | undefined;
|
256
|
-
} | undefined;
|
257
|
-
data?: {
|
258
|
-
vcUris?: string[] | undefined;
|
259
|
-
vpUris?: string[] | undefined;
|
260
|
-
} | undefined;
|
261
|
-
sent?: string | undefined;
|
262
|
-
type: "CONNECTION_REQUEST" | "CONNECTION_ACCEPTED" | "CREDENTIAL_RECEIVED" | "CREDENTIAL_ACCEPTED" | "BOOST_RECEIVED" | "BOOST_ACCEPTED" | "PRESENTATION_REQUEST" | "PRESENTATION_RECEIVED";
|
263
|
-
to: string | {
|
264
|
-
image?: string | undefined;
|
265
|
-
email?: string | undefined;
|
266
|
-
displayName?: string | undefined;
|
267
|
-
isServiceProfile?: boolean | undefined;
|
268
|
-
notificationsWebhook?: string | undefined;
|
269
|
-
profileId: string;
|
270
|
-
did: string;
|
271
|
-
};
|
272
|
-
from: string | {
|
273
|
-
image?: string | undefined;
|
274
|
-
email?: string | undefined;
|
275
|
-
displayName?: string | undefined;
|
276
|
-
isServiceProfile?: boolean | undefined;
|
277
|
-
notificationsWebhook?: string | undefined;
|
278
|
-
profileId: string;
|
279
|
-
did: string;
|
280
|
-
};
|
281
|
-
}>;
|
282
|
-
export type LCNNotification = z.infer<typeof LCNNotificationValidator>;
|
283
|
-
export declare const LCNBoostClaimLinkSigningAuthorityValidator: z.ZodObject<{
|
284
|
-
endpoint: z.ZodString;
|
285
|
-
name: z.ZodString;
|
286
|
-
did: z.ZodOptional<z.ZodString>;
|
287
|
-
}, "strip", z.ZodTypeAny, {
|
288
|
-
did?: string | undefined;
|
289
|
-
name: string;
|
290
|
-
endpoint: string;
|
291
|
-
}, {
|
292
|
-
did?: string | undefined;
|
293
|
-
name: string;
|
294
|
-
endpoint: string;
|
295
|
-
}>;
|
296
|
-
export type LCNBoostClaimLinkSigningAuthorityType = z.infer<typeof LCNBoostClaimLinkSigningAuthorityValidator>;
|
297
|
-
export declare const LCNBoostClaimLinkOptionsValidator: z.ZodObject<{
|
298
|
-
ttlSeconds: z.ZodOptional<z.ZodNumber>;
|
299
|
-
totalUses: z.ZodOptional<z.ZodNumber>;
|
300
|
-
}, "strip", z.ZodTypeAny, {
|
301
|
-
ttlSeconds?: number | undefined;
|
302
|
-
totalUses?: number | undefined;
|
303
|
-
}, {
|
304
|
-
ttlSeconds?: number | undefined;
|
305
|
-
totalUses?: number | undefined;
|
306
|
-
}>;
|
307
|
-
export type LCNBoostClaimLinkOptionsType = z.infer<typeof LCNBoostClaimLinkOptionsValidator>;
|
308
|
-
export declare const LCNSigningAuthorityValidator: z.ZodObject<{
|
309
|
-
endpoint: z.ZodString;
|
310
|
-
}, "strip", z.ZodTypeAny, {
|
311
|
-
endpoint: string;
|
312
|
-
}, {
|
313
|
-
endpoint: string;
|
314
|
-
}>;
|
315
|
-
export type LCNSigningAuthorityType = z.infer<typeof LCNSigningAuthorityValidator>;
|
316
|
-
export declare const LCNSigningAuthorityForUserValidator: z.ZodObject<{
|
317
|
-
signingAuthority: z.ZodObject<{
|
318
|
-
endpoint: z.ZodString;
|
319
|
-
}, "strip", z.ZodTypeAny, {
|
320
|
-
endpoint: string;
|
321
|
-
}, {
|
322
|
-
endpoint: string;
|
323
|
-
}>;
|
324
|
-
relationship: z.ZodObject<{
|
325
|
-
name: z.ZodString;
|
326
|
-
did: z.ZodString;
|
327
|
-
}, "strip", z.ZodTypeAny, {
|
328
|
-
name: string;
|
329
|
-
did: string;
|
330
|
-
}, {
|
331
|
-
name: string;
|
332
|
-
did: string;
|
333
|
-
}>;
|
334
|
-
}, "strip", z.ZodTypeAny, {
|
335
|
-
signingAuthority: {
|
336
|
-
endpoint: string;
|
337
|
-
};
|
338
|
-
relationship: {
|
339
|
-
name: string;
|
340
|
-
did: string;
|
341
|
-
};
|
342
|
-
}, {
|
343
|
-
signingAuthority: {
|
344
|
-
endpoint: string;
|
345
|
-
};
|
346
|
-
relationship: {
|
347
|
-
name: string;
|
348
|
-
did: string;
|
349
|
-
};
|
350
|
-
}>;
|
351
|
-
export type LCNSigningAuthorityForUserType = z.infer<typeof LCNSigningAuthorityForUserValidator>;
|