@learncard/types 5.18.1 → 5.18.3

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/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,
@@ -683,7 +708,8 @@ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
683
708
  did: LCNProfileValidator.shape.did
684
709
  });
685
710
  var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
686
- email: LCNProfileValidator.shape.email
711
+ email: LCNProfileValidator.shape.email,
712
+ connectedAt: z11.iso.datetime().optional().describe("When the viewer and this profile became connected.")
687
713
  });
688
714
  var LCNVisibleProfileValidator = z11.union([
689
715
  LCNConnectionProfileValidator.strict(),
@@ -1239,12 +1265,15 @@ var LCNNotificationInboxValidator = z11.object({
1239
1265
  }),
1240
1266
  timestamp: z11.iso.datetime().optional()
1241
1267
  });
1268
+ var LCNNotificationMetadataValidator = z11.object({
1269
+ connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
1270
+ }).catchall(z11.unknown());
1242
1271
  var LCNNotificationDataValidator = z11.object({
1243
1272
  vcUris: z11.array(z11.string()).optional(),
1244
1273
  vpUris: z11.array(z11.string()).optional(),
1245
1274
  transaction: ConsentFlowTransactionValidator.optional(),
1246
1275
  inbox: LCNNotificationInboxValidator.optional(),
1247
- metadata: z11.record(z11.string(), z11.unknown()).optional()
1276
+ metadata: LCNNotificationMetadataValidator.optional()
1248
1277
  }).loose();
1249
1278
  var LCNNotificationValidator = z11.object({
1250
1279
  type: LCNNotificationTypeEnumValidator,
@@ -2247,6 +2276,12 @@ export {
2247
2276
  LCNBoostClaimLinkSigningAuthorityValidator,
2248
2277
  LCNBoostStatus,
2249
2278
  LCNConnectionProfileValidator,
2279
+ LCNConnectionPromptActionResultValidator,
2280
+ LCNConnectionPromptActionStatusValidator,
2281
+ LCNConnectionPromptMetadataValidator,
2282
+ LCNConnectionPromptStatusValidator,
2283
+ LCNConnectionPromptSurfaceValidator,
2284
+ LCNConnectionPromptValidator,
2250
2285
  LCNDomainOrOriginValidator,
2251
2286
  LCNInboxContactMethodValidator,
2252
2287
  LCNInboxStatusEnumValidator,
@@ -2258,6 +2293,7 @@ export {
2258
2293
  LCNNotificationDataValidator,
2259
2294
  LCNNotificationInboxValidator,
2260
2295
  LCNNotificationMessageValidator,
2296
+ LCNNotificationMetadataValidator,
2261
2297
  LCNNotificationTypeEnumValidator,
2262
2298
  LCNNotificationValidator,
2263
2299
  LCNProfileConnectionStatusEnum,