@learncard/didkey-plugin 1.0.51 → 1.0.52
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/didkey-plugin.cjs.development.js +70 -1
- package/dist/didkey-plugin.cjs.development.js.map +2 -2
- package/dist/didkey-plugin.cjs.production.min.js +1 -1
- package/dist/didkey-plugin.cjs.production.min.js.map +3 -3
- package/dist/didkey-plugin.esm.js +70 -1
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/package.json +4 -4
@@ -106,6 +106,7 @@ var require_types_cjs_development = __commonJS({
|
|
106
106
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
107
107
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
108
108
|
ClaimHookValidator: () => ClaimHookValidator,
|
109
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
|
109
110
|
ClaimTokenValidator: () => ClaimTokenValidator,
|
110
111
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
111
112
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
@@ -128,6 +129,8 @@ var require_types_cjs_development = __commonJS({
|
|
128
129
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
129
130
|
ContextValidator: () => ContextValidator,
|
130
131
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
132
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
133
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
131
134
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
132
135
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
133
136
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
@@ -161,8 +164,13 @@ var require_types_cjs_development = __commonJS({
|
|
161
164
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
162
165
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
163
166
|
LCNBoostStatus: () => LCNBoostStatus,
|
167
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
|
164
168
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
165
169
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
170
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
|
171
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
|
172
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
|
173
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator,
|
166
174
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
167
175
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
168
176
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
@@ -189,6 +197,7 @@ var require_types_cjs_development = __commonJS({
|
|
189
197
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
190
198
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
191
199
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
200
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
|
192
201
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
193
202
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
194
203
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -5097,7 +5106,13 @@ var require_types_cjs_development = __commonJS({
|
|
5097
5106
|
type: z.string(),
|
5098
5107
|
value: z.string()
|
5099
5108
|
});
|
5100
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
5109
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
5110
|
+
"PENDING",
|
5111
|
+
"ISSUED",
|
5112
|
+
"EXPIRED",
|
5113
|
+
"DELIVERED",
|
5114
|
+
"CLAIMED"
|
5115
|
+
]);
|
5101
5116
|
var LCNNotificationInboxValidator = z.object({
|
5102
5117
|
issuanceId: z.string(),
|
5103
5118
|
status: LCNInboxStatusEnumValidator,
|
@@ -5195,11 +5210,19 @@ var require_types_cjs_development = __commonJS({
|
|
5195
5210
|
var SetPrimaryContactMethodValidator = z.object({
|
5196
5211
|
contactMethodId: z.string()
|
5197
5212
|
});
|
5213
|
+
var CreateContactMethodSessionValidator = z.object({
|
5214
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
5215
|
+
otpChallenge: z.string()
|
5216
|
+
});
|
5217
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
5218
|
+
sessionJwt: z.string()
|
5219
|
+
});
|
5198
5220
|
var InboxCredentialValidator = z.object({
|
5199
5221
|
id: z.string(),
|
5200
5222
|
credential: z.string(),
|
5201
5223
|
isSigned: z.boolean(),
|
5202
5224
|
currentStatus: LCNInboxStatusEnumValidator,
|
5225
|
+
isAccepted: z.boolean().optional(),
|
5203
5226
|
expiresAt: z.string(),
|
5204
5227
|
createdAt: z.string(),
|
5205
5228
|
issuerDid: z.string(),
|
@@ -5218,6 +5241,7 @@ var require_types_cjs_development = __commonJS({
|
|
5218
5241
|
currentStatus: LCNInboxStatusEnumValidator,
|
5219
5242
|
id: z.string(),
|
5220
5243
|
isSigned: z.boolean(),
|
5244
|
+
isAccepted: z.boolean().optional(),
|
5221
5245
|
issuerDid: z.string()
|
5222
5246
|
}).partial();
|
5223
5247
|
var IssueInboxSigningAuthorityValidator = z.object({
|
@@ -5259,6 +5283,51 @@ var require_types_cjs_development = __commonJS({
|
|
5259
5283
|
claimUrl: z.string().url().optional(),
|
5260
5284
|
recipientDid: z.string().optional()
|
5261
5285
|
});
|
5286
|
+
var ClaimInboxCredentialValidator = z.object({
|
5287
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
5288
|
+
configuration: z.object({
|
5289
|
+
publishableKey: z.string(),
|
5290
|
+
signingAuthorityName: z.string().optional()
|
5291
|
+
}).optional()
|
5292
|
+
});
|
5293
|
+
var LCNDomainOrOriginValidator = z.union([
|
5294
|
+
z.string().regex(
|
5295
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5296
|
+
{
|
5297
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
5298
|
+
}
|
5299
|
+
),
|
5300
|
+
z.string().regex(
|
5301
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5302
|
+
{ message: "Must be a valid http(s) origin" }
|
5303
|
+
)
|
5304
|
+
]);
|
5305
|
+
var LCNIntegrationValidator = z.object({
|
5306
|
+
id: z.string(),
|
5307
|
+
name: z.string(),
|
5308
|
+
description: z.string().optional(),
|
5309
|
+
publishableKey: z.string(),
|
5310
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5311
|
+
});
|
5312
|
+
var LCNIntegrationCreateValidator = z.object({
|
5313
|
+
name: z.string(),
|
5314
|
+
description: z.string().optional(),
|
5315
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5316
|
+
});
|
5317
|
+
var LCNIntegrationUpdateValidator = z.object({
|
5318
|
+
name: z.string().optional(),
|
5319
|
+
description: z.string().optional(),
|
5320
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
5321
|
+
rotatePublishableKey: z.boolean().optional()
|
5322
|
+
});
|
5323
|
+
var LCNIntegrationQueryValidator = z.object({
|
5324
|
+
id: StringQuery,
|
5325
|
+
name: StringQuery,
|
5326
|
+
description: StringQuery
|
5327
|
+
}).partial();
|
5328
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
5329
|
+
records: LCNIntegrationValidator.array()
|
5330
|
+
});
|
5262
5331
|
var ClaimTokenValidator = z.object({
|
5263
5332
|
token: z.string(),
|
5264
5333
|
contactMethodId: z.string(),
|