@learncard/types 5.18.1 → 5.18.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/lcn.d.ts +90 -2
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.cjs +36 -1
- package/dist/types.cjs.development.cjs.map +2 -2
- package/dist/types.cjs.production.min.cjs +5 -5
- package/dist/types.cjs.production.min.cjs.map +3 -3
- package/dist/types.esm.js +36 -1
- package/dist/types.esm.js.map +2 -2
- package/package.json +1 -1
- package/src/lcn.ts +49 -1
package/dist/types.esm.js
CHANGED
|
@@ -675,6 +675,31 @@ var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
|
675
675
|
isServiceProfile: true,
|
|
676
676
|
display: true
|
|
677
677
|
});
|
|
678
|
+
var LCNConnectionPromptStatusValidator = z11.enum(["PENDING", "SKIPPED", "CONNECTED"]);
|
|
679
|
+
var LCNConnectionPromptSurfaceValidator = z11.enum(["POST_CLAIM", "NOTIFICATION"]);
|
|
680
|
+
var LCNConnectionPromptActionStatusValidator = z11.enum([
|
|
681
|
+
"PENDING",
|
|
682
|
+
"SKIPPED",
|
|
683
|
+
"CONNECTED",
|
|
684
|
+
"STALE"
|
|
685
|
+
]);
|
|
686
|
+
var LCNConnectionPromptValidator = z11.object({
|
|
687
|
+
promptId: z11.string().uuid(),
|
|
688
|
+
status: LCNConnectionPromptStatusValidator,
|
|
689
|
+
surface: LCNConnectionPromptSurfaceValidator,
|
|
690
|
+
triggerId: z11.string(),
|
|
691
|
+
triggeredAt: z11.iso.datetime(),
|
|
692
|
+
updatedAt: z11.iso.datetime(),
|
|
693
|
+
counterpart: LCNPublicProfileValidator
|
|
694
|
+
});
|
|
695
|
+
var LCNConnectionPromptActionResultValidator = z11.object({
|
|
696
|
+
promptId: z11.string().uuid(),
|
|
697
|
+
status: LCNConnectionPromptActionStatusValidator
|
|
698
|
+
});
|
|
699
|
+
var LCNConnectionPromptMetadataValidator = z11.object({
|
|
700
|
+
promptId: z11.string().uuid(),
|
|
701
|
+
counterpartProfileId: z11.string()
|
|
702
|
+
});
|
|
678
703
|
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
679
704
|
bio: LCNProfileValidator.shape.bio,
|
|
680
705
|
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
@@ -1239,12 +1264,15 @@ var LCNNotificationInboxValidator = z11.object({
|
|
|
1239
1264
|
}),
|
|
1240
1265
|
timestamp: z11.iso.datetime().optional()
|
|
1241
1266
|
});
|
|
1267
|
+
var LCNNotificationMetadataValidator = z11.object({
|
|
1268
|
+
connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
|
|
1269
|
+
}).catchall(z11.unknown());
|
|
1242
1270
|
var LCNNotificationDataValidator = z11.object({
|
|
1243
1271
|
vcUris: z11.array(z11.string()).optional(),
|
|
1244
1272
|
vpUris: z11.array(z11.string()).optional(),
|
|
1245
1273
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
1246
1274
|
inbox: LCNNotificationInboxValidator.optional(),
|
|
1247
|
-
metadata:
|
|
1275
|
+
metadata: LCNNotificationMetadataValidator.optional()
|
|
1248
1276
|
}).loose();
|
|
1249
1277
|
var LCNNotificationValidator = z11.object({
|
|
1250
1278
|
type: LCNNotificationTypeEnumValidator,
|
|
@@ -2247,6 +2275,12 @@ export {
|
|
|
2247
2275
|
LCNBoostClaimLinkSigningAuthorityValidator,
|
|
2248
2276
|
LCNBoostStatus,
|
|
2249
2277
|
LCNConnectionProfileValidator,
|
|
2278
|
+
LCNConnectionPromptActionResultValidator,
|
|
2279
|
+
LCNConnectionPromptActionStatusValidator,
|
|
2280
|
+
LCNConnectionPromptMetadataValidator,
|
|
2281
|
+
LCNConnectionPromptStatusValidator,
|
|
2282
|
+
LCNConnectionPromptSurfaceValidator,
|
|
2283
|
+
LCNConnectionPromptValidator,
|
|
2250
2284
|
LCNDomainOrOriginValidator,
|
|
2251
2285
|
LCNInboxContactMethodValidator,
|
|
2252
2286
|
LCNInboxStatusEnumValidator,
|
|
@@ -2258,6 +2292,7 @@ export {
|
|
|
2258
2292
|
LCNNotificationDataValidator,
|
|
2259
2293
|
LCNNotificationInboxValidator,
|
|
2260
2294
|
LCNNotificationMessageValidator,
|
|
2295
|
+
LCNNotificationMetadataValidator,
|
|
2261
2296
|
LCNNotificationTypeEnumValidator,
|
|
2262
2297
|
LCNNotificationValidator,
|
|
2263
2298
|
LCNProfileConnectionStatusEnum,
|