@learncard/learn-cloud-plugin 2.2.3 → 2.2.5
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/learn-cloud-plugin.cjs.development.js +135 -4
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +15 -15
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +135 -4
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -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,
|
|
@@ -13147,7 +13156,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13147
13156
|
"CONSENT_FLOW_TRANSACTION",
|
|
13148
13157
|
"ISSUANCE_CLAIMED",
|
|
13149
13158
|
"ISSUANCE_DELIVERED",
|
|
13150
|
-
"ISSUANCE_ERROR"
|
|
13159
|
+
"ISSUANCE_ERROR",
|
|
13160
|
+
"PROFILE_PARENT_APPROVED"
|
|
13151
13161
|
]);
|
|
13152
13162
|
var LCNNotificationMessageValidator2 = z2.object({
|
|
13153
13163
|
title: z2.string().optional(),
|
|
@@ -13157,7 +13167,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13157
13167
|
type: z2.string(),
|
|
13158
13168
|
value: z2.string()
|
|
13159
13169
|
});
|
|
13160
|
-
var LCNInboxStatusEnumValidator2 = z2.enum([
|
|
13170
|
+
var LCNInboxStatusEnumValidator2 = z2.enum([
|
|
13171
|
+
"PENDING",
|
|
13172
|
+
"ISSUED",
|
|
13173
|
+
"EXPIRED",
|
|
13174
|
+
"DELIVERED",
|
|
13175
|
+
"CLAIMED"
|
|
13176
|
+
]);
|
|
13161
13177
|
var LCNNotificationInboxValidator2 = z2.object({
|
|
13162
13178
|
issuanceId: z2.string(),
|
|
13163
13179
|
status: LCNInboxStatusEnumValidator2,
|
|
@@ -13255,11 +13271,19 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13255
13271
|
var SetPrimaryContactMethodValidator2 = z2.object({
|
|
13256
13272
|
contactMethodId: z2.string()
|
|
13257
13273
|
});
|
|
13274
|
+
var CreateContactMethodSessionValidator2 = z2.object({
|
|
13275
|
+
contactMethod: ContactMethodVerificationRequestValidator2,
|
|
13276
|
+
otpChallenge: z2.string()
|
|
13277
|
+
});
|
|
13278
|
+
var CreateContactMethodSessionResponseValidator2 = z2.object({
|
|
13279
|
+
sessionJwt: z2.string()
|
|
13280
|
+
});
|
|
13258
13281
|
var InboxCredentialValidator2 = z2.object({
|
|
13259
13282
|
id: z2.string(),
|
|
13260
13283
|
credential: z2.string(),
|
|
13261
13284
|
isSigned: z2.boolean(),
|
|
13262
13285
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
13286
|
+
isAccepted: z2.boolean().optional(),
|
|
13263
13287
|
expiresAt: z2.string(),
|
|
13264
13288
|
createdAt: z2.string(),
|
|
13265
13289
|
issuerDid: z2.string(),
|
|
@@ -13278,6 +13302,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13278
13302
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
13279
13303
|
id: z2.string(),
|
|
13280
13304
|
isSigned: z2.boolean(),
|
|
13305
|
+
isAccepted: z2.boolean().optional(),
|
|
13281
13306
|
issuerDid: z2.string()
|
|
13282
13307
|
}).partial();
|
|
13283
13308
|
var IssueInboxSigningAuthorityValidator2 = z2.object({
|
|
@@ -13319,6 +13344,51 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13319
13344
|
claimUrl: z2.string().url().optional(),
|
|
13320
13345
|
recipientDid: z2.string().optional()
|
|
13321
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
|
+
});
|
|
13322
13392
|
var ClaimTokenValidator2 = z2.object({
|
|
13323
13393
|
token: z2.string(),
|
|
13324
13394
|
contactMethodId: z2.string(),
|
|
@@ -18173,7 +18243,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
|
|
|
18173
18243
|
"CONSENT_FLOW_TRANSACTION",
|
|
18174
18244
|
"ISSUANCE_CLAIMED",
|
|
18175
18245
|
"ISSUANCE_DELIVERED",
|
|
18176
|
-
"ISSUANCE_ERROR"
|
|
18246
|
+
"ISSUANCE_ERROR",
|
|
18247
|
+
"PROFILE_PARENT_APPROVED"
|
|
18177
18248
|
]);
|
|
18178
18249
|
var LCNNotificationMessageValidator = z.object({
|
|
18179
18250
|
title: z.string().optional(),
|
|
@@ -18183,7 +18254,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
18183
18254
|
type: z.string(),
|
|
18184
18255
|
value: z.string()
|
|
18185
18256
|
});
|
|
18186
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
18257
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
18258
|
+
"PENDING",
|
|
18259
|
+
"ISSUED",
|
|
18260
|
+
"EXPIRED",
|
|
18261
|
+
"DELIVERED",
|
|
18262
|
+
"CLAIMED"
|
|
18263
|
+
]);
|
|
18187
18264
|
var LCNNotificationInboxValidator = z.object({
|
|
18188
18265
|
issuanceId: z.string(),
|
|
18189
18266
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -18281,11 +18358,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
18281
18358
|
var SetPrimaryContactMethodValidator = z.object({
|
|
18282
18359
|
contactMethodId: z.string()
|
|
18283
18360
|
});
|
|
18361
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
18362
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
18363
|
+
otpChallenge: z.string()
|
|
18364
|
+
});
|
|
18365
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
18366
|
+
sessionJwt: z.string()
|
|
18367
|
+
});
|
|
18284
18368
|
var InboxCredentialValidator = z.object({
|
|
18285
18369
|
id: z.string(),
|
|
18286
18370
|
credential: z.string(),
|
|
18287
18371
|
isSigned: z.boolean(),
|
|
18288
18372
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
18373
|
+
isAccepted: z.boolean().optional(),
|
|
18289
18374
|
expiresAt: z.string(),
|
|
18290
18375
|
createdAt: z.string(),
|
|
18291
18376
|
issuerDid: z.string(),
|
|
@@ -18304,6 +18389,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
18304
18389
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
18305
18390
|
id: z.string(),
|
|
18306
18391
|
isSigned: z.boolean(),
|
|
18392
|
+
isAccepted: z.boolean().optional(),
|
|
18307
18393
|
issuerDid: z.string()
|
|
18308
18394
|
}).partial();
|
|
18309
18395
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -18345,6 +18431,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
18345
18431
|
claimUrl: z.string().url().optional(),
|
|
18346
18432
|
recipientDid: z.string().optional()
|
|
18347
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
|
+
});
|
|
18348
18479
|
var ClaimTokenValidator = z.object({
|
|
18349
18480
|
token: z.string(),
|
|
18350
18481
|
contactMethodId: z.string(),
|