@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
|
@@ -8154,6 +8154,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8154
8154
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator2,
|
|
8155
8155
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator2,
|
|
8156
8156
|
ClaimHookValidator: () => ClaimHookValidator2,
|
|
8157
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator2,
|
|
8157
8158
|
ClaimTokenValidator: () => ClaimTokenValidator2,
|
|
8158
8159
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator2,
|
|
8159
8160
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator2,
|
|
@@ -8176,6 +8177,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8176
8177
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
8177
8178
|
ContextValidator: () => ContextValidator2,
|
|
8178
8179
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
8180
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
8181
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
8179
8182
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
8180
8183
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
8181
8184
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
@@ -8209,8 +8212,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8209
8212
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator2,
|
|
8210
8213
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator2,
|
|
8211
8214
|
LCNBoostStatus: () => LCNBoostStatus2,
|
|
8215
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator2,
|
|
8212
8216
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator2,
|
|
8213
8217
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator2,
|
|
8218
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator2,
|
|
8219
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator2,
|
|
8220
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator2,
|
|
8221
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator2,
|
|
8214
8222
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator2,
|
|
8215
8223
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator2,
|
|
8216
8224
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator2,
|
|
@@ -8237,6 +8245,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8237
8245
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator2,
|
|
8238
8246
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator2,
|
|
8239
8247
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator2,
|
|
8248
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator2,
|
|
8240
8249
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
8241
8250
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
8242
8251
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
@@ -13134,7 +13143,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13134
13143
|
"CONSENT_FLOW_TRANSACTION",
|
|
13135
13144
|
"ISSUANCE_CLAIMED",
|
|
13136
13145
|
"ISSUANCE_DELIVERED",
|
|
13137
|
-
"ISSUANCE_ERROR"
|
|
13146
|
+
"ISSUANCE_ERROR",
|
|
13147
|
+
"PROFILE_PARENT_APPROVED"
|
|
13138
13148
|
]);
|
|
13139
13149
|
var LCNNotificationMessageValidator2 = z2.object({
|
|
13140
13150
|
title: z2.string().optional(),
|
|
@@ -13144,7 +13154,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13144
13154
|
type: z2.string(),
|
|
13145
13155
|
value: z2.string()
|
|
13146
13156
|
});
|
|
13147
|
-
var LCNInboxStatusEnumValidator2 = z2.enum([
|
|
13157
|
+
var LCNInboxStatusEnumValidator2 = z2.enum([
|
|
13158
|
+
"PENDING",
|
|
13159
|
+
"ISSUED",
|
|
13160
|
+
"EXPIRED",
|
|
13161
|
+
"DELIVERED",
|
|
13162
|
+
"CLAIMED"
|
|
13163
|
+
]);
|
|
13148
13164
|
var LCNNotificationInboxValidator2 = z2.object({
|
|
13149
13165
|
issuanceId: z2.string(),
|
|
13150
13166
|
status: LCNInboxStatusEnumValidator2,
|
|
@@ -13242,11 +13258,19 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13242
13258
|
var SetPrimaryContactMethodValidator2 = z2.object({
|
|
13243
13259
|
contactMethodId: z2.string()
|
|
13244
13260
|
});
|
|
13261
|
+
var CreateContactMethodSessionValidator2 = z2.object({
|
|
13262
|
+
contactMethod: ContactMethodVerificationRequestValidator2,
|
|
13263
|
+
otpChallenge: z2.string()
|
|
13264
|
+
});
|
|
13265
|
+
var CreateContactMethodSessionResponseValidator2 = z2.object({
|
|
13266
|
+
sessionJwt: z2.string()
|
|
13267
|
+
});
|
|
13245
13268
|
var InboxCredentialValidator2 = z2.object({
|
|
13246
13269
|
id: z2.string(),
|
|
13247
13270
|
credential: z2.string(),
|
|
13248
13271
|
isSigned: z2.boolean(),
|
|
13249
13272
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
13273
|
+
isAccepted: z2.boolean().optional(),
|
|
13250
13274
|
expiresAt: z2.string(),
|
|
13251
13275
|
createdAt: z2.string(),
|
|
13252
13276
|
issuerDid: z2.string(),
|
|
@@ -13265,6 +13289,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13265
13289
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
13266
13290
|
id: z2.string(),
|
|
13267
13291
|
isSigned: z2.boolean(),
|
|
13292
|
+
isAccepted: z2.boolean().optional(),
|
|
13268
13293
|
issuerDid: z2.string()
|
|
13269
13294
|
}).partial();
|
|
13270
13295
|
var IssueInboxSigningAuthorityValidator2 = z2.object({
|
|
@@ -13306,6 +13331,51 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13306
13331
|
claimUrl: z2.string().url().optional(),
|
|
13307
13332
|
recipientDid: z2.string().optional()
|
|
13308
13333
|
});
|
|
13334
|
+
var ClaimInboxCredentialValidator2 = z2.object({
|
|
13335
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue."),
|
|
13336
|
+
configuration: z2.object({
|
|
13337
|
+
publishableKey: z2.string(),
|
|
13338
|
+
signingAuthorityName: z2.string().optional()
|
|
13339
|
+
}).optional()
|
|
13340
|
+
});
|
|
13341
|
+
var LCNDomainOrOriginValidator2 = z2.union([
|
|
13342
|
+
z2.string().regex(
|
|
13343
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
13344
|
+
{
|
|
13345
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
13346
|
+
}
|
|
13347
|
+
),
|
|
13348
|
+
z2.string().regex(
|
|
13349
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
13350
|
+
{ message: "Must be a valid http(s) origin" }
|
|
13351
|
+
)
|
|
13352
|
+
]);
|
|
13353
|
+
var LCNIntegrationValidator2 = z2.object({
|
|
13354
|
+
id: z2.string(),
|
|
13355
|
+
name: z2.string(),
|
|
13356
|
+
description: z2.string().optional(),
|
|
13357
|
+
publishableKey: z2.string(),
|
|
13358
|
+
whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
|
|
13359
|
+
});
|
|
13360
|
+
var LCNIntegrationCreateValidator2 = z2.object({
|
|
13361
|
+
name: z2.string(),
|
|
13362
|
+
description: z2.string().optional(),
|
|
13363
|
+
whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
|
|
13364
|
+
});
|
|
13365
|
+
var LCNIntegrationUpdateValidator2 = z2.object({
|
|
13366
|
+
name: z2.string().optional(),
|
|
13367
|
+
description: z2.string().optional(),
|
|
13368
|
+
whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).optional(),
|
|
13369
|
+
rotatePublishableKey: z2.boolean().optional()
|
|
13370
|
+
});
|
|
13371
|
+
var LCNIntegrationQueryValidator2 = z2.object({
|
|
13372
|
+
id: StringQuery2,
|
|
13373
|
+
name: StringQuery2,
|
|
13374
|
+
description: StringQuery2
|
|
13375
|
+
}).partial();
|
|
13376
|
+
var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
|
|
13377
|
+
records: LCNIntegrationValidator2.array()
|
|
13378
|
+
});
|
|
13309
13379
|
var ClaimTokenValidator2 = z2.object({
|
|
13310
13380
|
token: z2.string(),
|
|
13311
13381
|
contactMethodId: z2.string(),
|
|
@@ -18160,7 +18230,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
|
|
|
18160
18230
|
"CONSENT_FLOW_TRANSACTION",
|
|
18161
18231
|
"ISSUANCE_CLAIMED",
|
|
18162
18232
|
"ISSUANCE_DELIVERED",
|
|
18163
|
-
"ISSUANCE_ERROR"
|
|
18233
|
+
"ISSUANCE_ERROR",
|
|
18234
|
+
"PROFILE_PARENT_APPROVED"
|
|
18164
18235
|
]);
|
|
18165
18236
|
var LCNNotificationMessageValidator = z.object({
|
|
18166
18237
|
title: z.string().optional(),
|
|
@@ -18170,7 +18241,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
18170
18241
|
type: z.string(),
|
|
18171
18242
|
value: z.string()
|
|
18172
18243
|
});
|
|
18173
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
18244
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
18245
|
+
"PENDING",
|
|
18246
|
+
"ISSUED",
|
|
18247
|
+
"EXPIRED",
|
|
18248
|
+
"DELIVERED",
|
|
18249
|
+
"CLAIMED"
|
|
18250
|
+
]);
|
|
18174
18251
|
var LCNNotificationInboxValidator = z.object({
|
|
18175
18252
|
issuanceId: z.string(),
|
|
18176
18253
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -18268,11 +18345,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
18268
18345
|
var SetPrimaryContactMethodValidator = z.object({
|
|
18269
18346
|
contactMethodId: z.string()
|
|
18270
18347
|
});
|
|
18348
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
18349
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
18350
|
+
otpChallenge: z.string()
|
|
18351
|
+
});
|
|
18352
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
18353
|
+
sessionJwt: z.string()
|
|
18354
|
+
});
|
|
18271
18355
|
var InboxCredentialValidator = z.object({
|
|
18272
18356
|
id: z.string(),
|
|
18273
18357
|
credential: z.string(),
|
|
18274
18358
|
isSigned: z.boolean(),
|
|
18275
18359
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
18360
|
+
isAccepted: z.boolean().optional(),
|
|
18276
18361
|
expiresAt: z.string(),
|
|
18277
18362
|
createdAt: z.string(),
|
|
18278
18363
|
issuerDid: z.string(),
|
|
@@ -18291,6 +18376,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
18291
18376
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
18292
18377
|
id: z.string(),
|
|
18293
18378
|
isSigned: z.boolean(),
|
|
18379
|
+
isAccepted: z.boolean().optional(),
|
|
18294
18380
|
issuerDid: z.string()
|
|
18295
18381
|
}).partial();
|
|
18296
18382
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -18332,6 +18418,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
18332
18418
|
claimUrl: z.string().url().optional(),
|
|
18333
18419
|
recipientDid: z.string().optional()
|
|
18334
18420
|
});
|
|
18421
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
18422
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
18423
|
+
configuration: z.object({
|
|
18424
|
+
publishableKey: z.string(),
|
|
18425
|
+
signingAuthorityName: z.string().optional()
|
|
18426
|
+
}).optional()
|
|
18427
|
+
});
|
|
18428
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
18429
|
+
z.string().regex(
|
|
18430
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
18431
|
+
{
|
|
18432
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
18433
|
+
}
|
|
18434
|
+
),
|
|
18435
|
+
z.string().regex(
|
|
18436
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
18437
|
+
{ message: "Must be a valid http(s) origin" }
|
|
18438
|
+
)
|
|
18439
|
+
]);
|
|
18440
|
+
var LCNIntegrationValidator = z.object({
|
|
18441
|
+
id: z.string(),
|
|
18442
|
+
name: z.string(),
|
|
18443
|
+
description: z.string().optional(),
|
|
18444
|
+
publishableKey: z.string(),
|
|
18445
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
18446
|
+
});
|
|
18447
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
18448
|
+
name: z.string(),
|
|
18449
|
+
description: z.string().optional(),
|
|
18450
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
18451
|
+
});
|
|
18452
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
18453
|
+
name: z.string().optional(),
|
|
18454
|
+
description: z.string().optional(),
|
|
18455
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
18456
|
+
rotatePublishableKey: z.boolean().optional()
|
|
18457
|
+
});
|
|
18458
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
18459
|
+
id: StringQuery,
|
|
18460
|
+
name: StringQuery,
|
|
18461
|
+
description: StringQuery
|
|
18462
|
+
}).partial();
|
|
18463
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
18464
|
+
records: LCNIntegrationValidator.array()
|
|
18465
|
+
});
|
|
18335
18466
|
var ClaimTokenValidator = z.object({
|
|
18336
18467
|
token: z.string(),
|
|
18337
18468
|
contactMethodId: z.string(),
|