@learncard/helpers 1.1.28 → 1.1.29
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.
@@ -72,6 +72,7 @@ var require_types_cjs_development = __commonJS({
|
|
72
72
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
73
73
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
74
74
|
ClaimHookValidator: () => ClaimHookValidator,
|
75
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
|
75
76
|
ClaimTokenValidator: () => ClaimTokenValidator,
|
76
77
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
77
78
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
@@ -94,6 +95,8 @@ var require_types_cjs_development = __commonJS({
|
|
94
95
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
95
96
|
ContextValidator: () => ContextValidator,
|
96
97
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
98
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
99
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
97
100
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
98
101
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
99
102
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
@@ -127,8 +130,13 @@ var require_types_cjs_development = __commonJS({
|
|
127
130
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
128
131
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
129
132
|
LCNBoostStatus: () => LCNBoostStatus,
|
133
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
|
130
134
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
131
135
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
136
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
|
137
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
|
138
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
|
139
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator,
|
132
140
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
133
141
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
134
142
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
@@ -155,6 +163,7 @@ var require_types_cjs_development = __commonJS({
|
|
155
163
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
156
164
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
157
165
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
166
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
|
158
167
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
159
168
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
160
169
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -5040,7 +5049,13 @@ var require_types_cjs_development = __commonJS({
|
|
5040
5049
|
type: z.string(),
|
5041
5050
|
value: z.string()
|
5042
5051
|
});
|
5043
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
5052
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
5053
|
+
"PENDING",
|
5054
|
+
"ISSUED",
|
5055
|
+
"EXPIRED",
|
5056
|
+
"DELIVERED",
|
5057
|
+
"CLAIMED"
|
5058
|
+
]);
|
5044
5059
|
var LCNNotificationInboxValidator = z.object({
|
5045
5060
|
issuanceId: z.string(),
|
5046
5061
|
status: LCNInboxStatusEnumValidator,
|
@@ -5138,11 +5153,19 @@ var require_types_cjs_development = __commonJS({
|
|
5138
5153
|
var SetPrimaryContactMethodValidator = z.object({
|
5139
5154
|
contactMethodId: z.string()
|
5140
5155
|
});
|
5156
|
+
var CreateContactMethodSessionValidator = z.object({
|
5157
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
5158
|
+
otpChallenge: z.string()
|
5159
|
+
});
|
5160
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
5161
|
+
sessionJwt: z.string()
|
5162
|
+
});
|
5141
5163
|
var InboxCredentialValidator = z.object({
|
5142
5164
|
id: z.string(),
|
5143
5165
|
credential: z.string(),
|
5144
5166
|
isSigned: z.boolean(),
|
5145
5167
|
currentStatus: LCNInboxStatusEnumValidator,
|
5168
|
+
isAccepted: z.boolean().optional(),
|
5146
5169
|
expiresAt: z.string(),
|
5147
5170
|
createdAt: z.string(),
|
5148
5171
|
issuerDid: z.string(),
|
@@ -5161,6 +5184,7 @@ var require_types_cjs_development = __commonJS({
|
|
5161
5184
|
currentStatus: LCNInboxStatusEnumValidator,
|
5162
5185
|
id: z.string(),
|
5163
5186
|
isSigned: z.boolean(),
|
5187
|
+
isAccepted: z.boolean().optional(),
|
5164
5188
|
issuerDid: z.string()
|
5165
5189
|
}).partial();
|
5166
5190
|
var IssueInboxSigningAuthorityValidator = z.object({
|
@@ -5202,6 +5226,51 @@ var require_types_cjs_development = __commonJS({
|
|
5202
5226
|
claimUrl: z.string().url().optional(),
|
5203
5227
|
recipientDid: z.string().optional()
|
5204
5228
|
});
|
5229
|
+
var ClaimInboxCredentialValidator = z.object({
|
5230
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
5231
|
+
configuration: z.object({
|
5232
|
+
publishableKey: z.string(),
|
5233
|
+
signingAuthorityName: z.string().optional()
|
5234
|
+
}).optional()
|
5235
|
+
});
|
5236
|
+
var LCNDomainOrOriginValidator = z.union([
|
5237
|
+
z.string().regex(
|
5238
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5239
|
+
{
|
5240
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
5241
|
+
}
|
5242
|
+
),
|
5243
|
+
z.string().regex(
|
5244
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5245
|
+
{ message: "Must be a valid http(s) origin" }
|
5246
|
+
)
|
5247
|
+
]);
|
5248
|
+
var LCNIntegrationValidator = z.object({
|
5249
|
+
id: z.string(),
|
5250
|
+
name: z.string(),
|
5251
|
+
description: z.string().optional(),
|
5252
|
+
publishableKey: z.string(),
|
5253
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5254
|
+
});
|
5255
|
+
var LCNIntegrationCreateValidator = z.object({
|
5256
|
+
name: z.string(),
|
5257
|
+
description: z.string().optional(),
|
5258
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5259
|
+
});
|
5260
|
+
var LCNIntegrationUpdateValidator = z.object({
|
5261
|
+
name: z.string().optional(),
|
5262
|
+
description: z.string().optional(),
|
5263
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
5264
|
+
rotatePublishableKey: z.boolean().optional()
|
5265
|
+
});
|
5266
|
+
var LCNIntegrationQueryValidator = z.object({
|
5267
|
+
id: StringQuery,
|
5268
|
+
name: StringQuery,
|
5269
|
+
description: StringQuery
|
5270
|
+
}).partial();
|
5271
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
5272
|
+
records: LCNIntegrationValidator.array()
|
5273
|
+
});
|
5205
5274
|
var ClaimTokenValidator = z.object({
|
5206
5275
|
token: z.string(),
|
5207
5276
|
contactMethodId: z.string(),
|