@learncard/didkey-plugin 1.0.40 → 1.0.42
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 +162 -6
- 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 +162 -6
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/package.json +4 -4
@@ -105,6 +105,7 @@ var require_types_cjs_development = __commonJS({
|
|
105
105
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
106
106
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
107
107
|
ClaimHookValidator: () => ClaimHookValidator,
|
108
|
+
ClaimTokenValidator: () => ClaimTokenValidator,
|
108
109
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
109
110
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
110
111
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
@@ -119,6 +120,11 @@ var require_types_cjs_development = __commonJS({
|
|
119
120
|
ConsentFlowTransactionActionValidator: () => ConsentFlowTransactionActionValidator,
|
120
121
|
ConsentFlowTransactionValidator: () => ConsentFlowTransactionValidator,
|
121
122
|
ConsentFlowTransactionsQueryValidator: () => ConsentFlowTransactionsQueryValidator,
|
123
|
+
ContactMethodCreateValidator: () => ContactMethodCreateValidator,
|
124
|
+
ContactMethodQueryValidator: () => ContactMethodQueryValidator,
|
125
|
+
ContactMethodValidator: () => ContactMethodValidator,
|
126
|
+
ContactMethodVerificationRequestValidator: () => ContactMethodVerificationRequestValidator,
|
127
|
+
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
122
128
|
ContextValidator: () => ContextValidator,
|
123
129
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
124
130
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
@@ -140,6 +146,11 @@ var require_types_cjs_development = __commonJS({
|
|
140
146
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
141
147
|
IdentityObjectValidator: () => IdentityObjectValidator,
|
142
148
|
ImageValidator: () => ImageValidator,
|
149
|
+
InboxCredentialQueryValidator: () => InboxCredentialQueryValidator,
|
150
|
+
InboxCredentialValidator: () => InboxCredentialValidator,
|
151
|
+
IssueInboxCredentialResponseValidator: () => IssueInboxCredentialResponseValidator,
|
152
|
+
IssueInboxCredentialValidator: () => IssueInboxCredentialValidator,
|
153
|
+
IssueInboxSigningAuthorityValidator: () => IssueInboxSigningAuthorityValidator,
|
143
154
|
JWERecipientHeaderValidator: () => JWERecipientHeaderValidator,
|
144
155
|
JWERecipientValidator: () => JWERecipientValidator,
|
145
156
|
JWEValidator: () => JWEValidator2,
|
@@ -149,7 +160,10 @@ var require_types_cjs_development = __commonJS({
|
|
149
160
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
150
161
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
151
162
|
LCNBoostStatus: () => LCNBoostStatus,
|
163
|
+
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
164
|
+
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
152
165
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
166
|
+
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
153
167
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
154
168
|
LCNNotificationTypeEnumValidator: () => LCNNotificationTypeEnumValidator,
|
155
169
|
LCNNotificationValidator: () => LCNNotificationValidator,
|
@@ -172,6 +186,7 @@ var require_types_cjs_development = __commonJS({
|
|
172
186
|
PaginatedContractCredentialsValidator: () => PaginatedContractCredentialsValidator,
|
173
187
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
174
188
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
189
|
+
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
175
190
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
176
191
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
177
192
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -189,6 +204,7 @@ var require_types_cjs_development = __commonJS({
|
|
189
204
|
RubricCriterionValidator: () => RubricCriterionValidator,
|
190
205
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
191
206
|
ServiceValidator: () => ServiceValidator,
|
207
|
+
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
|
192
208
|
StringQuery: () => StringQuery,
|
193
209
|
TermsOfUseValidator: () => TermsOfUseValidator,
|
194
210
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
@@ -4696,7 +4712,7 @@ var require_types_cjs_development = __commonJS({
|
|
4696
4712
|
bio: z.string().default("").describe("Longer bio for the profile."),
|
4697
4713
|
did: z.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
4698
4714
|
isPrivate: z.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
4699
|
-
email: z.string().optional().describe("Contact email address for the profile."),
|
4715
|
+
email: z.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
4700
4716
|
image: z.string().optional().describe("Profile image URL for the profile."),
|
4701
4717
|
heroImage: z.string().optional().describe("Hero image URL for the profile."),
|
4702
4718
|
websiteLink: z.string().optional().describe("Website link for the profile."),
|
@@ -4823,7 +4839,8 @@ var require_types_cjs_development = __commonJS({
|
|
4823
4839
|
status: LCNBoostStatus.optional(),
|
4824
4840
|
autoConnectRecipients: z.boolean().optional(),
|
4825
4841
|
meta: z.record(z.any()).optional(),
|
4826
|
-
claimPermissions: BoostPermissionsValidator.optional()
|
4842
|
+
claimPermissions: BoostPermissionsValidator.optional(),
|
4843
|
+
allowAnyoneToCreateChildren: z.boolean().optional()
|
4827
4844
|
});
|
4828
4845
|
var BoostQueryValidator = z.object({
|
4829
4846
|
uri: StringQuery,
|
@@ -4864,7 +4881,8 @@ var require_types_cjs_development = __commonJS({
|
|
4864
4881
|
name: z.string().max(15).regex(/^[a-z0-9-]+$/, {
|
4865
4882
|
message: "The input string must contain only lowercase letters, numbers, and hyphens."
|
4866
4883
|
}),
|
4867
|
-
did: z.string()
|
4884
|
+
did: z.string(),
|
4885
|
+
isPrimary: z.boolean().optional()
|
4868
4886
|
})
|
4869
4887
|
});
|
4870
4888
|
var AutoBoostConfigValidator = z.object({
|
@@ -5045,16 +5063,33 @@ var require_types_cjs_development = __commonJS({
|
|
5045
5063
|
"BOOST_ACCEPTED",
|
5046
5064
|
"PRESENTATION_REQUEST",
|
5047
5065
|
"PRESENTATION_RECEIVED",
|
5048
|
-
"CONSENT_FLOW_TRANSACTION"
|
5066
|
+
"CONSENT_FLOW_TRANSACTION",
|
5067
|
+
"ISSUANCE_CLAIMED",
|
5068
|
+
"ISSUANCE_DELIVERED"
|
5049
5069
|
]);
|
5050
5070
|
var LCNNotificationMessageValidator = z.object({
|
5051
5071
|
title: z.string().optional(),
|
5052
5072
|
body: z.string().optional()
|
5053
5073
|
});
|
5074
|
+
var LCNInboxContactMethodValidator = z.object({
|
5075
|
+
type: z.string(),
|
5076
|
+
value: z.string()
|
5077
|
+
});
|
5078
|
+
var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
|
5079
|
+
var LCNNotificationInboxValidator = z.object({
|
5080
|
+
issuanceId: z.string(),
|
5081
|
+
status: LCNInboxStatusEnumValidator,
|
5082
|
+
recipient: z.object({
|
5083
|
+
contactMethod: LCNInboxContactMethodValidator.optional(),
|
5084
|
+
learnCardId: z.string().optional()
|
5085
|
+
}),
|
5086
|
+
timestamp: z.string().datetime().optional()
|
5087
|
+
});
|
5054
5088
|
var LCNNotificationDataValidator = z.object({
|
5055
5089
|
vcUris: z.array(z.string()).optional(),
|
5056
5090
|
vpUris: z.array(z.string()).optional(),
|
5057
|
-
transaction: ConsentFlowTransactionValidator.optional()
|
5091
|
+
transaction: ConsentFlowTransactionValidator.optional(),
|
5092
|
+
inbox: LCNNotificationInboxValidator.optional()
|
5058
5093
|
});
|
5059
5094
|
var LCNNotificationValidator = z.object({
|
5060
5095
|
type: LCNNotificationTypeEnumValidator,
|
@@ -5062,7 +5097,8 @@ var require_types_cjs_development = __commonJS({
|
|
5062
5097
|
from: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
5063
5098
|
message: LCNNotificationMessageValidator.optional(),
|
5064
5099
|
data: LCNNotificationDataValidator.optional(),
|
5065
|
-
sent: z.string().datetime().optional()
|
5100
|
+
sent: z.string().datetime().optional(),
|
5101
|
+
webhookUrl: z.string().optional()
|
5066
5102
|
});
|
5067
5103
|
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
5068
5104
|
var AuthGrantValidator = z.object({
|
@@ -5086,6 +5122,126 @@ var require_types_cjs_development = __commonJS({
|
|
5086
5122
|
description: StringQuery,
|
5087
5123
|
status: AuthGrantStatusValidator
|
5088
5124
|
}).partial();
|
5125
|
+
var contactMethodBase = z.object({
|
5126
|
+
id: z.string(),
|
5127
|
+
isVerified: z.boolean(),
|
5128
|
+
verifiedAt: z.string().optional(),
|
5129
|
+
isPrimary: z.boolean(),
|
5130
|
+
createdAt: z.string()
|
5131
|
+
});
|
5132
|
+
var ContactMethodValidator = z.discriminatedUnion("type", [
|
5133
|
+
z.object({
|
5134
|
+
type: z.literal("email"),
|
5135
|
+
value: z.string().email()
|
5136
|
+
}).merge(contactMethodBase),
|
5137
|
+
z.object({
|
5138
|
+
type: z.literal("phone"),
|
5139
|
+
value: z.string()
|
5140
|
+
}).merge(contactMethodBase)
|
5141
|
+
]);
|
5142
|
+
var createContactMethodBase = z.object({
|
5143
|
+
isVerified: z.boolean().optional(),
|
5144
|
+
isPrimary: z.boolean().optional()
|
5145
|
+
});
|
5146
|
+
var ContactMethodCreateValidator = z.discriminatedUnion("type", [
|
5147
|
+
z.object({
|
5148
|
+
type: z.literal("email"),
|
5149
|
+
value: z.string().email()
|
5150
|
+
}).merge(createContactMethodBase),
|
5151
|
+
z.object({
|
5152
|
+
type: z.literal("phone"),
|
5153
|
+
value: z.string()
|
5154
|
+
}).merge(createContactMethodBase)
|
5155
|
+
]);
|
5156
|
+
var ContactMethodQueryValidator = z.discriminatedUnion("type", [
|
5157
|
+
z.object({
|
5158
|
+
type: z.literal("email"),
|
5159
|
+
value: z.string().email()
|
5160
|
+
}),
|
5161
|
+
z.object({
|
5162
|
+
type: z.literal("phone"),
|
5163
|
+
value: z.string()
|
5164
|
+
})
|
5165
|
+
]);
|
5166
|
+
var ContactMethodVerificationRequestValidator = z.object({
|
5167
|
+
value: z.string(),
|
5168
|
+
type: z.enum(["email", "phone"])
|
5169
|
+
});
|
5170
|
+
var ContactMethodVerificationValidator = z.object({
|
5171
|
+
token: z.string()
|
5172
|
+
});
|
5173
|
+
var SetPrimaryContactMethodValidator = z.object({
|
5174
|
+
contactMethodId: z.string()
|
5175
|
+
});
|
5176
|
+
var InboxCredentialValidator = z.object({
|
5177
|
+
id: z.string(),
|
5178
|
+
credential: z.string(),
|
5179
|
+
isSigned: z.boolean(),
|
5180
|
+
currentStatus: LCNInboxStatusEnumValidator,
|
5181
|
+
expiresAt: z.string(),
|
5182
|
+
createdAt: z.string(),
|
5183
|
+
issuerDid: z.string(),
|
5184
|
+
webhookUrl: z.string().optional(),
|
5185
|
+
"signingAuthority.endpoint": z.string().optional(),
|
5186
|
+
"signingAuthority.name": z.string().optional()
|
5187
|
+
});
|
5188
|
+
var PaginatedInboxCredentialsValidator = z.object({
|
5189
|
+
hasMore: z.boolean(),
|
5190
|
+
records: z.array(InboxCredentialValidator),
|
5191
|
+
cursor: z.string().optional()
|
5192
|
+
});
|
5193
|
+
var InboxCredentialQueryValidator = z.object({
|
5194
|
+
currentStatus: LCNInboxStatusEnumValidator,
|
5195
|
+
id: z.string(),
|
5196
|
+
isSigned: z.boolean(),
|
5197
|
+
issuerDid: z.string()
|
5198
|
+
}).partial();
|
5199
|
+
var IssueInboxSigningAuthorityValidator = z.object({
|
5200
|
+
endpoint: z.string().url(),
|
5201
|
+
name: z.string()
|
5202
|
+
});
|
5203
|
+
var IssueInboxCredentialValidator = z.object({
|
5204
|
+
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
5205
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),
|
5206
|
+
configuration: z.object({
|
5207
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe("The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."),
|
5208
|
+
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
5209
|
+
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
5210
|
+
delivery: z.object({
|
5211
|
+
suppress: z.boolean().optional().default(false).describe("Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."),
|
5212
|
+
template: z.object({
|
5213
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),
|
5214
|
+
model: z.object({
|
5215
|
+
issuer: z.object({
|
5216
|
+
name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
|
5217
|
+
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
5218
|
+
}).optional(),
|
5219
|
+
credential: z.object({
|
5220
|
+
name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
|
5221
|
+
type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
|
5222
|
+
}).optional(),
|
5223
|
+
recipient: z.object({
|
5224
|
+
name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
|
5225
|
+
}).optional()
|
5226
|
+
}).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")
|
5227
|
+
}).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
|
5228
|
+
}).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")
|
5229
|
+
}).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
|
5230
|
+
});
|
5231
|
+
var IssueInboxCredentialResponseValidator = z.object({
|
5232
|
+
issuanceId: z.string(),
|
5233
|
+
status: LCNInboxStatusEnumValidator,
|
5234
|
+
recipient: ContactMethodQueryValidator,
|
5235
|
+
claimUrl: z.string().url().optional(),
|
5236
|
+
recipientDid: z.string().optional()
|
5237
|
+
});
|
5238
|
+
var ClaimTokenValidator = z.object({
|
5239
|
+
token: z.string(),
|
5240
|
+
contactMethodId: z.string(),
|
5241
|
+
createdAt: z.string(),
|
5242
|
+
expiresAt: z.string(),
|
5243
|
+
used: z.boolean()
|
5244
|
+
});
|
5089
5245
|
}
|
5090
5246
|
});
|
5091
5247
|
var require_dist = __commonJS({
|