@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
@@ -82,6 +82,7 @@ var require_types_cjs_development = __commonJS({
|
|
82
82
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
83
83
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
84
84
|
ClaimHookValidator: () => ClaimHookValidator,
|
85
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
|
85
86
|
ClaimTokenValidator: () => ClaimTokenValidator,
|
86
87
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
87
88
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
@@ -104,6 +105,8 @@ var require_types_cjs_development = __commonJS({
|
|
104
105
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
105
106
|
ContextValidator: () => ContextValidator,
|
106
107
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
108
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
109
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
107
110
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
108
111
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
109
112
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
@@ -137,8 +140,13 @@ var require_types_cjs_development = __commonJS({
|
|
137
140
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
138
141
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
139
142
|
LCNBoostStatus: () => LCNBoostStatus,
|
143
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
|
140
144
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
141
145
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
146
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
|
147
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
|
148
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
|
149
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator,
|
142
150
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
143
151
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
144
152
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
@@ -165,6 +173,7 @@ var require_types_cjs_development = __commonJS({
|
|
165
173
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
166
174
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
167
175
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
176
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
|
168
177
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
169
178
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
170
179
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -5073,7 +5082,13 @@ var require_types_cjs_development = __commonJS({
|
|
5073
5082
|
type: z.string(),
|
5074
5083
|
value: z.string()
|
5075
5084
|
});
|
5076
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
5085
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
5086
|
+
"PENDING",
|
5087
|
+
"ISSUED",
|
5088
|
+
"EXPIRED",
|
5089
|
+
"DELIVERED",
|
5090
|
+
"CLAIMED"
|
5091
|
+
]);
|
5077
5092
|
var LCNNotificationInboxValidator = z.object({
|
5078
5093
|
issuanceId: z.string(),
|
5079
5094
|
status: LCNInboxStatusEnumValidator,
|
@@ -5171,11 +5186,19 @@ var require_types_cjs_development = __commonJS({
|
|
5171
5186
|
var SetPrimaryContactMethodValidator = z.object({
|
5172
5187
|
contactMethodId: z.string()
|
5173
5188
|
});
|
5189
|
+
var CreateContactMethodSessionValidator = z.object({
|
5190
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
5191
|
+
otpChallenge: z.string()
|
5192
|
+
});
|
5193
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
5194
|
+
sessionJwt: z.string()
|
5195
|
+
});
|
5174
5196
|
var InboxCredentialValidator = z.object({
|
5175
5197
|
id: z.string(),
|
5176
5198
|
credential: z.string(),
|
5177
5199
|
isSigned: z.boolean(),
|
5178
5200
|
currentStatus: LCNInboxStatusEnumValidator,
|
5201
|
+
isAccepted: z.boolean().optional(),
|
5179
5202
|
expiresAt: z.string(),
|
5180
5203
|
createdAt: z.string(),
|
5181
5204
|
issuerDid: z.string(),
|
@@ -5194,6 +5217,7 @@ var require_types_cjs_development = __commonJS({
|
|
5194
5217
|
currentStatus: LCNInboxStatusEnumValidator,
|
5195
5218
|
id: z.string(),
|
5196
5219
|
isSigned: z.boolean(),
|
5220
|
+
isAccepted: z.boolean().optional(),
|
5197
5221
|
issuerDid: z.string()
|
5198
5222
|
}).partial();
|
5199
5223
|
var IssueInboxSigningAuthorityValidator = z.object({
|
@@ -5235,6 +5259,51 @@ var require_types_cjs_development = __commonJS({
|
|
5235
5259
|
claimUrl: z.string().url().optional(),
|
5236
5260
|
recipientDid: z.string().optional()
|
5237
5261
|
});
|
5262
|
+
var ClaimInboxCredentialValidator = z.object({
|
5263
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
5264
|
+
configuration: z.object({
|
5265
|
+
publishableKey: z.string(),
|
5266
|
+
signingAuthorityName: z.string().optional()
|
5267
|
+
}).optional()
|
5268
|
+
});
|
5269
|
+
var LCNDomainOrOriginValidator = z.union([
|
5270
|
+
z.string().regex(
|
5271
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5272
|
+
{
|
5273
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
5274
|
+
}
|
5275
|
+
),
|
5276
|
+
z.string().regex(
|
5277
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5278
|
+
{ message: "Must be a valid http(s) origin" }
|
5279
|
+
)
|
5280
|
+
]);
|
5281
|
+
var LCNIntegrationValidator = z.object({
|
5282
|
+
id: z.string(),
|
5283
|
+
name: z.string(),
|
5284
|
+
description: z.string().optional(),
|
5285
|
+
publishableKey: z.string(),
|
5286
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5287
|
+
});
|
5288
|
+
var LCNIntegrationCreateValidator = z.object({
|
5289
|
+
name: z.string(),
|
5290
|
+
description: z.string().optional(),
|
5291
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5292
|
+
});
|
5293
|
+
var LCNIntegrationUpdateValidator = z.object({
|
5294
|
+
name: z.string().optional(),
|
5295
|
+
description: z.string().optional(),
|
5296
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
5297
|
+
rotatePublishableKey: z.boolean().optional()
|
5298
|
+
});
|
5299
|
+
var LCNIntegrationQueryValidator = z.object({
|
5300
|
+
id: StringQuery,
|
5301
|
+
name: StringQuery,
|
5302
|
+
description: StringQuery
|
5303
|
+
}).partial();
|
5304
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
5305
|
+
records: LCNIntegrationValidator.array()
|
5306
|
+
});
|
5238
5307
|
var ClaimTokenValidator = z.object({
|
5239
5308
|
token: z.string(),
|
5240
5309
|
contactMethodId: z.string(),
|