@learncard/learn-cloud-plugin 2.2.4 → 2.2.6

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.
@@ -8167,6 +8167,7 @@ var require_types_cjs_development = __commonJS2({
8167
8167
  ClaimHookQueryValidator: () => ClaimHookQueryValidator2,
8168
8168
  ClaimHookTypeValidator: () => ClaimHookTypeValidator2,
8169
8169
  ClaimHookValidator: () => ClaimHookValidator2,
8170
+ ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator2,
8170
8171
  ClaimTokenValidator: () => ClaimTokenValidator2,
8171
8172
  ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator2,
8172
8173
  ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator2,
@@ -8189,6 +8190,8 @@ var require_types_cjs_development = __commonJS2({
8189
8190
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
8190
8191
  ContextValidator: () => ContextValidator2,
8191
8192
  ContractCredentialValidator: () => ContractCredentialValidator2,
8193
+ CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
8194
+ CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
8192
8195
  CredentialInfoValidator: () => CredentialInfoValidator2,
8193
8196
  CredentialRecordValidator: () => CredentialRecordValidator2,
8194
8197
  CredentialSchemaValidator: () => CredentialSchemaValidator2,
@@ -8222,8 +8225,13 @@ var require_types_cjs_development = __commonJS2({
8222
8225
  LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator2,
8223
8226
  LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator2,
8224
8227
  LCNBoostStatus: () => LCNBoostStatus2,
8228
+ LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator2,
8225
8229
  LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator2,
8226
8230
  LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator2,
8231
+ LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator2,
8232
+ LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator2,
8233
+ LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator2,
8234
+ LCNIntegrationValidator: () => LCNIntegrationValidator2,
8227
8235
  LCNNotificationDataValidator: () => LCNNotificationDataValidator2,
8228
8236
  LCNNotificationInboxValidator: () => LCNNotificationInboxValidator2,
8229
8237
  LCNNotificationMessageValidator: () => LCNNotificationMessageValidator2,
@@ -8250,6 +8258,7 @@ var require_types_cjs_development = __commonJS2({
8250
8258
  PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator2,
8251
8259
  PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator2,
8252
8260
  PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator2,
8261
+ PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator2,
8253
8262
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
8254
8263
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
8255
8264
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
@@ -13158,7 +13167,13 @@ var require_types_cjs_development = __commonJS2({
13158
13167
  type: z2.string(),
13159
13168
  value: z2.string()
13160
13169
  });
13161
- var LCNInboxStatusEnumValidator2 = z2.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
13170
+ var LCNInboxStatusEnumValidator2 = z2.enum([
13171
+ "PENDING",
13172
+ "ISSUED",
13173
+ "EXPIRED",
13174
+ "DELIVERED",
13175
+ "CLAIMED"
13176
+ ]);
13162
13177
  var LCNNotificationInboxValidator2 = z2.object({
13163
13178
  issuanceId: z2.string(),
13164
13179
  status: LCNInboxStatusEnumValidator2,
@@ -13256,11 +13271,19 @@ var require_types_cjs_development = __commonJS2({
13256
13271
  var SetPrimaryContactMethodValidator2 = z2.object({
13257
13272
  contactMethodId: z2.string()
13258
13273
  });
13274
+ var CreateContactMethodSessionValidator2 = z2.object({
13275
+ contactMethod: ContactMethodVerificationRequestValidator2,
13276
+ otpChallenge: z2.string()
13277
+ });
13278
+ var CreateContactMethodSessionResponseValidator2 = z2.object({
13279
+ sessionJwt: z2.string()
13280
+ });
13259
13281
  var InboxCredentialValidator2 = z2.object({
13260
13282
  id: z2.string(),
13261
13283
  credential: z2.string(),
13262
13284
  isSigned: z2.boolean(),
13263
13285
  currentStatus: LCNInboxStatusEnumValidator2,
13286
+ isAccepted: z2.boolean().optional(),
13264
13287
  expiresAt: z2.string(),
13265
13288
  createdAt: z2.string(),
13266
13289
  issuerDid: z2.string(),
@@ -13279,6 +13302,7 @@ var require_types_cjs_development = __commonJS2({
13279
13302
  currentStatus: LCNInboxStatusEnumValidator2,
13280
13303
  id: z2.string(),
13281
13304
  isSigned: z2.boolean(),
13305
+ isAccepted: z2.boolean().optional(),
13282
13306
  issuerDid: z2.string()
13283
13307
  }).partial();
13284
13308
  var IssueInboxSigningAuthorityValidator2 = z2.object({
@@ -13320,6 +13344,51 @@ var require_types_cjs_development = __commonJS2({
13320
13344
  claimUrl: z2.string().url().optional(),
13321
13345
  recipientDid: z2.string().optional()
13322
13346
  });
13347
+ var ClaimInboxCredentialValidator2 = z2.object({
13348
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue."),
13349
+ configuration: z2.object({
13350
+ publishableKey: z2.string(),
13351
+ signingAuthorityName: z2.string().optional()
13352
+ }).optional()
13353
+ });
13354
+ var LCNDomainOrOriginValidator2 = z2.union([
13355
+ z2.string().regex(
13356
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
13357
+ {
13358
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
13359
+ }
13360
+ ),
13361
+ z2.string().regex(
13362
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
13363
+ { message: "Must be a valid http(s) origin" }
13364
+ )
13365
+ ]);
13366
+ var LCNIntegrationValidator2 = z2.object({
13367
+ id: z2.string(),
13368
+ name: z2.string(),
13369
+ description: z2.string().optional(),
13370
+ publishableKey: z2.string(),
13371
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
13372
+ });
13373
+ var LCNIntegrationCreateValidator2 = z2.object({
13374
+ name: z2.string(),
13375
+ description: z2.string().optional(),
13376
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
13377
+ });
13378
+ var LCNIntegrationUpdateValidator2 = z2.object({
13379
+ name: z2.string().optional(),
13380
+ description: z2.string().optional(),
13381
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).optional(),
13382
+ rotatePublishableKey: z2.boolean().optional()
13383
+ });
13384
+ var LCNIntegrationQueryValidator2 = z2.object({
13385
+ id: StringQuery2,
13386
+ name: StringQuery2,
13387
+ description: StringQuery2
13388
+ }).partial();
13389
+ var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
13390
+ records: LCNIntegrationValidator2.array()
13391
+ });
13323
13392
  var ClaimTokenValidator2 = z2.object({
13324
13393
  token: z2.string(),
13325
13394
  contactMethodId: z2.string(),
@@ -18185,7 +18254,13 @@ var LCNInboxContactMethodValidator = z.object({
18185
18254
  type: z.string(),
18186
18255
  value: z.string()
18187
18256
  });
18188
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
18257
+ var LCNInboxStatusEnumValidator = z.enum([
18258
+ "PENDING",
18259
+ "ISSUED",
18260
+ "EXPIRED",
18261
+ "DELIVERED",
18262
+ "CLAIMED"
18263
+ ]);
18189
18264
  var LCNNotificationInboxValidator = z.object({
18190
18265
  issuanceId: z.string(),
18191
18266
  status: LCNInboxStatusEnumValidator,
@@ -18283,11 +18358,19 @@ var ContactMethodVerificationValidator = z.object({
18283
18358
  var SetPrimaryContactMethodValidator = z.object({
18284
18359
  contactMethodId: z.string()
18285
18360
  });
18361
+ var CreateContactMethodSessionValidator = z.object({
18362
+ contactMethod: ContactMethodVerificationRequestValidator,
18363
+ otpChallenge: z.string()
18364
+ });
18365
+ var CreateContactMethodSessionResponseValidator = z.object({
18366
+ sessionJwt: z.string()
18367
+ });
18286
18368
  var InboxCredentialValidator = z.object({
18287
18369
  id: z.string(),
18288
18370
  credential: z.string(),
18289
18371
  isSigned: z.boolean(),
18290
18372
  currentStatus: LCNInboxStatusEnumValidator,
18373
+ isAccepted: z.boolean().optional(),
18291
18374
  expiresAt: z.string(),
18292
18375
  createdAt: z.string(),
18293
18376
  issuerDid: z.string(),
@@ -18306,6 +18389,7 @@ var InboxCredentialQueryValidator = z.object({
18306
18389
  currentStatus: LCNInboxStatusEnumValidator,
18307
18390
  id: z.string(),
18308
18391
  isSigned: z.boolean(),
18392
+ isAccepted: z.boolean().optional(),
18309
18393
  issuerDid: z.string()
18310
18394
  }).partial();
18311
18395
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -18347,6 +18431,51 @@ var IssueInboxCredentialResponseValidator = z.object({
18347
18431
  claimUrl: z.string().url().optional(),
18348
18432
  recipientDid: z.string().optional()
18349
18433
  });
18434
+ var ClaimInboxCredentialValidator = z.object({
18435
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
18436
+ configuration: z.object({
18437
+ publishableKey: z.string(),
18438
+ signingAuthorityName: z.string().optional()
18439
+ }).optional()
18440
+ });
18441
+ var LCNDomainOrOriginValidator = z.union([
18442
+ z.string().regex(
18443
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
18444
+ {
18445
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
18446
+ }
18447
+ ),
18448
+ z.string().regex(
18449
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
18450
+ { message: "Must be a valid http(s) origin" }
18451
+ )
18452
+ ]);
18453
+ var LCNIntegrationValidator = z.object({
18454
+ id: z.string(),
18455
+ name: z.string(),
18456
+ description: z.string().optional(),
18457
+ publishableKey: z.string(),
18458
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
18459
+ });
18460
+ var LCNIntegrationCreateValidator = z.object({
18461
+ name: z.string(),
18462
+ description: z.string().optional(),
18463
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
18464
+ });
18465
+ var LCNIntegrationUpdateValidator = z.object({
18466
+ name: z.string().optional(),
18467
+ description: z.string().optional(),
18468
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
18469
+ rotatePublishableKey: z.boolean().optional()
18470
+ });
18471
+ var LCNIntegrationQueryValidator = z.object({
18472
+ id: StringQuery,
18473
+ name: StringQuery,
18474
+ description: StringQuery
18475
+ }).partial();
18476
+ var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
18477
+ records: LCNIntegrationValidator.array()
18478
+ });
18350
18479
  var ClaimTokenValidator = z.object({
18351
18480
  token: z.string(),
18352
18481
  contactMethodId: z.string(),