@learncard/helpers 1.3.12 → 1.3.13

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.
@@ -195,6 +195,12 @@ var require_types_cjs_development = __commonJS({
195
195
  LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
196
196
  LCNBoostStatus: /* @__PURE__ */ __name(() => LCNBoostStatus, "LCNBoostStatus"),
197
197
  LCNConnectionProfileValidator: /* @__PURE__ */ __name(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
198
+ LCNConnectionPromptActionResultValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionResultValidator, "LCNConnectionPromptActionResultValidator"),
199
+ LCNConnectionPromptActionStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionStatusValidator, "LCNConnectionPromptActionStatusValidator"),
200
+ LCNConnectionPromptMetadataValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptMetadataValidator, "LCNConnectionPromptMetadataValidator"),
201
+ LCNConnectionPromptStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptStatusValidator, "LCNConnectionPromptStatusValidator"),
202
+ LCNConnectionPromptSurfaceValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptSurfaceValidator, "LCNConnectionPromptSurfaceValidator"),
203
+ LCNConnectionPromptValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptValidator, "LCNConnectionPromptValidator"),
198
204
  LCNDomainOrOriginValidator: /* @__PURE__ */ __name(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
199
205
  LCNInboxContactMethodValidator: /* @__PURE__ */ __name(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
200
206
  LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
@@ -206,6 +212,7 @@ var require_types_cjs_development = __commonJS({
206
212
  LCNNotificationDataValidator: /* @__PURE__ */ __name(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
207
213
  LCNNotificationInboxValidator: /* @__PURE__ */ __name(() => LCNNotificationInboxValidator, "LCNNotificationInboxValidator"),
208
214
  LCNNotificationMessageValidator: /* @__PURE__ */ __name(() => LCNNotificationMessageValidator, "LCNNotificationMessageValidator"),
215
+ LCNNotificationMetadataValidator: /* @__PURE__ */ __name(() => LCNNotificationMetadataValidator, "LCNNotificationMetadataValidator"),
209
216
  LCNNotificationTypeEnumValidator: /* @__PURE__ */ __name(() => LCNNotificationTypeEnumValidator, "LCNNotificationTypeEnumValidator"),
210
217
  LCNNotificationValidator: /* @__PURE__ */ __name(() => LCNNotificationValidator, "LCNNotificationValidator"),
211
218
  LCNProfileConnectionStatusEnum: /* @__PURE__ */ __name(() => LCNProfileConnectionStatusEnum, "LCNProfileConnectionStatusEnum"),
@@ -16230,6 +16237,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16230
16237
  isServiceProfile: true,
16231
16238
  display: true
16232
16239
  });
16240
+ var LCNConnectionPromptStatusValidator = external_exports.enum(["PENDING", "SKIPPED", "CONNECTED"]);
16241
+ var LCNConnectionPromptSurfaceValidator = external_exports.enum(["POST_CLAIM", "NOTIFICATION"]);
16242
+ var LCNConnectionPromptActionStatusValidator = external_exports.enum([
16243
+ "PENDING",
16244
+ "SKIPPED",
16245
+ "CONNECTED",
16246
+ "STALE"
16247
+ ]);
16248
+ var LCNConnectionPromptValidator = external_exports.object({
16249
+ promptId: external_exports.string().uuid(),
16250
+ status: LCNConnectionPromptStatusValidator,
16251
+ surface: LCNConnectionPromptSurfaceValidator,
16252
+ triggerId: external_exports.string(),
16253
+ triggeredAt: external_exports.iso.datetime(),
16254
+ updatedAt: external_exports.iso.datetime(),
16255
+ counterpart: LCNPublicProfileValidator
16256
+ });
16257
+ var LCNConnectionPromptActionResultValidator = external_exports.object({
16258
+ promptId: external_exports.string().uuid(),
16259
+ status: LCNConnectionPromptActionStatusValidator
16260
+ });
16261
+ var LCNConnectionPromptMetadataValidator = external_exports.object({
16262
+ promptId: external_exports.string().uuid(),
16263
+ counterpartProfileId: external_exports.string()
16264
+ });
16233
16265
  var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
16234
16266
  bio: LCNProfileValidator.shape.bio,
16235
16267
  websiteLink: LCNProfileValidator.shape.websiteLink,
@@ -16794,12 +16826,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16794
16826
  }),
16795
16827
  timestamp: external_exports.iso.datetime().optional()
16796
16828
  });
16829
+ var LCNNotificationMetadataValidator = external_exports.object({
16830
+ connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
16831
+ }).catchall(external_exports.unknown());
16797
16832
  var LCNNotificationDataValidator = external_exports.object({
16798
16833
  vcUris: external_exports.array(external_exports.string()).optional(),
16799
16834
  vpUris: external_exports.array(external_exports.string()).optional(),
16800
16835
  transaction: ConsentFlowTransactionValidator.optional(),
16801
16836
  inbox: LCNNotificationInboxValidator.optional(),
16802
- metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
16837
+ metadata: LCNNotificationMetadataValidator.optional()
16803
16838
  }).loose();
16804
16839
  var LCNNotificationValidator = external_exports.object({
16805
16840
  type: LCNNotificationTypeEnumValidator,