@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.
- package/dist/learn-cloud-plugin.cjs.development.js +131 -2
- 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 +131 -2
- 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,
|
|
@@ -13145,7 +13154,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13145
13154
|
type: z2.string(),
|
|
13146
13155
|
value: z2.string()
|
|
13147
13156
|
});
|
|
13148
|
-
var LCNInboxStatusEnumValidator2 = z2.enum([
|
|
13157
|
+
var LCNInboxStatusEnumValidator2 = z2.enum([
|
|
13158
|
+
"PENDING",
|
|
13159
|
+
"ISSUED",
|
|
13160
|
+
"EXPIRED",
|
|
13161
|
+
"DELIVERED",
|
|
13162
|
+
"CLAIMED"
|
|
13163
|
+
]);
|
|
13149
13164
|
var LCNNotificationInboxValidator2 = z2.object({
|
|
13150
13165
|
issuanceId: z2.string(),
|
|
13151
13166
|
status: LCNInboxStatusEnumValidator2,
|
|
@@ -13243,11 +13258,19 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13243
13258
|
var SetPrimaryContactMethodValidator2 = z2.object({
|
|
13244
13259
|
contactMethodId: z2.string()
|
|
13245
13260
|
});
|
|
13261
|
+
var CreateContactMethodSessionValidator2 = z2.object({
|
|
13262
|
+
contactMethod: ContactMethodVerificationRequestValidator2,
|
|
13263
|
+
otpChallenge: z2.string()
|
|
13264
|
+
});
|
|
13265
|
+
var CreateContactMethodSessionResponseValidator2 = z2.object({
|
|
13266
|
+
sessionJwt: z2.string()
|
|
13267
|
+
});
|
|
13246
13268
|
var InboxCredentialValidator2 = z2.object({
|
|
13247
13269
|
id: z2.string(),
|
|
13248
13270
|
credential: z2.string(),
|
|
13249
13271
|
isSigned: z2.boolean(),
|
|
13250
13272
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
13273
|
+
isAccepted: z2.boolean().optional(),
|
|
13251
13274
|
expiresAt: z2.string(),
|
|
13252
13275
|
createdAt: z2.string(),
|
|
13253
13276
|
issuerDid: z2.string(),
|
|
@@ -13266,6 +13289,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13266
13289
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
13267
13290
|
id: z2.string(),
|
|
13268
13291
|
isSigned: z2.boolean(),
|
|
13292
|
+
isAccepted: z2.boolean().optional(),
|
|
13269
13293
|
issuerDid: z2.string()
|
|
13270
13294
|
}).partial();
|
|
13271
13295
|
var IssueInboxSigningAuthorityValidator2 = z2.object({
|
|
@@ -13307,6 +13331,51 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13307
13331
|
claimUrl: z2.string().url().optional(),
|
|
13308
13332
|
recipientDid: z2.string().optional()
|
|
13309
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
|
+
});
|
|
13310
13379
|
var ClaimTokenValidator2 = z2.object({
|
|
13311
13380
|
token: z2.string(),
|
|
13312
13381
|
contactMethodId: z2.string(),
|
|
@@ -18172,7 +18241,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
18172
18241
|
type: z.string(),
|
|
18173
18242
|
value: z.string()
|
|
18174
18243
|
});
|
|
18175
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
18244
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
18245
|
+
"PENDING",
|
|
18246
|
+
"ISSUED",
|
|
18247
|
+
"EXPIRED",
|
|
18248
|
+
"DELIVERED",
|
|
18249
|
+
"CLAIMED"
|
|
18250
|
+
]);
|
|
18176
18251
|
var LCNNotificationInboxValidator = z.object({
|
|
18177
18252
|
issuanceId: z.string(),
|
|
18178
18253
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -18270,11 +18345,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
18270
18345
|
var SetPrimaryContactMethodValidator = z.object({
|
|
18271
18346
|
contactMethodId: z.string()
|
|
18272
18347
|
});
|
|
18348
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
18349
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
18350
|
+
otpChallenge: z.string()
|
|
18351
|
+
});
|
|
18352
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
18353
|
+
sessionJwt: z.string()
|
|
18354
|
+
});
|
|
18273
18355
|
var InboxCredentialValidator = z.object({
|
|
18274
18356
|
id: z.string(),
|
|
18275
18357
|
credential: z.string(),
|
|
18276
18358
|
isSigned: z.boolean(),
|
|
18277
18359
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
18360
|
+
isAccepted: z.boolean().optional(),
|
|
18278
18361
|
expiresAt: z.string(),
|
|
18279
18362
|
createdAt: z.string(),
|
|
18280
18363
|
issuerDid: z.string(),
|
|
@@ -18293,6 +18376,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
18293
18376
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
18294
18377
|
id: z.string(),
|
|
18295
18378
|
isSigned: z.boolean(),
|
|
18379
|
+
isAccepted: z.boolean().optional(),
|
|
18296
18380
|
issuerDid: z.string()
|
|
18297
18381
|
}).partial();
|
|
18298
18382
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -18334,6 +18418,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
18334
18418
|
claimUrl: z.string().url().optional(),
|
|
18335
18419
|
recipientDid: z.string().optional()
|
|
18336
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
|
+
});
|
|
18337
18466
|
var ClaimTokenValidator = z.object({
|
|
18338
18467
|
token: z.string(),
|
|
18339
18468
|
contactMethodId: z.string(),
|