@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.
package/dist/helpers.esm.js
CHANGED
@@ -67,6 +67,7 @@ var require_types_cjs_development = __commonJS({
|
|
67
67
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
68
68
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
69
69
|
ClaimHookValidator: () => ClaimHookValidator,
|
70
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
|
70
71
|
ClaimTokenValidator: () => ClaimTokenValidator,
|
71
72
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
72
73
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
@@ -89,6 +90,8 @@ var require_types_cjs_development = __commonJS({
|
|
89
90
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
90
91
|
ContextValidator: () => ContextValidator,
|
91
92
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
93
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
94
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
92
95
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
93
96
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
94
97
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
@@ -122,8 +125,13 @@ var require_types_cjs_development = __commonJS({
|
|
122
125
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
123
126
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
124
127
|
LCNBoostStatus: () => LCNBoostStatus,
|
128
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
|
125
129
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
126
130
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
131
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
|
132
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
|
133
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
|
134
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator,
|
127
135
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
128
136
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
129
137
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
@@ -150,6 +158,7 @@ var require_types_cjs_development = __commonJS({
|
|
150
158
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
151
159
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
152
160
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
161
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
|
153
162
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
154
163
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
155
164
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -5035,7 +5044,13 @@ var require_types_cjs_development = __commonJS({
|
|
5035
5044
|
type: z.string(),
|
5036
5045
|
value: z.string()
|
5037
5046
|
});
|
5038
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
5047
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
5048
|
+
"PENDING",
|
5049
|
+
"ISSUED",
|
5050
|
+
"EXPIRED",
|
5051
|
+
"DELIVERED",
|
5052
|
+
"CLAIMED"
|
5053
|
+
]);
|
5039
5054
|
var LCNNotificationInboxValidator = z.object({
|
5040
5055
|
issuanceId: z.string(),
|
5041
5056
|
status: LCNInboxStatusEnumValidator,
|
@@ -5133,11 +5148,19 @@ var require_types_cjs_development = __commonJS({
|
|
5133
5148
|
var SetPrimaryContactMethodValidator = z.object({
|
5134
5149
|
contactMethodId: z.string()
|
5135
5150
|
});
|
5151
|
+
var CreateContactMethodSessionValidator = z.object({
|
5152
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
5153
|
+
otpChallenge: z.string()
|
5154
|
+
});
|
5155
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
5156
|
+
sessionJwt: z.string()
|
5157
|
+
});
|
5136
5158
|
var InboxCredentialValidator = z.object({
|
5137
5159
|
id: z.string(),
|
5138
5160
|
credential: z.string(),
|
5139
5161
|
isSigned: z.boolean(),
|
5140
5162
|
currentStatus: LCNInboxStatusEnumValidator,
|
5163
|
+
isAccepted: z.boolean().optional(),
|
5141
5164
|
expiresAt: z.string(),
|
5142
5165
|
createdAt: z.string(),
|
5143
5166
|
issuerDid: z.string(),
|
@@ -5156,6 +5179,7 @@ var require_types_cjs_development = __commonJS({
|
|
5156
5179
|
currentStatus: LCNInboxStatusEnumValidator,
|
5157
5180
|
id: z.string(),
|
5158
5181
|
isSigned: z.boolean(),
|
5182
|
+
isAccepted: z.boolean().optional(),
|
5159
5183
|
issuerDid: z.string()
|
5160
5184
|
}).partial();
|
5161
5185
|
var IssueInboxSigningAuthorityValidator = z.object({
|
@@ -5197,6 +5221,51 @@ var require_types_cjs_development = __commonJS({
|
|
5197
5221
|
claimUrl: z.string().url().optional(),
|
5198
5222
|
recipientDid: z.string().optional()
|
5199
5223
|
});
|
5224
|
+
var ClaimInboxCredentialValidator = z.object({
|
5225
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
5226
|
+
configuration: z.object({
|
5227
|
+
publishableKey: z.string(),
|
5228
|
+
signingAuthorityName: z.string().optional()
|
5229
|
+
}).optional()
|
5230
|
+
});
|
5231
|
+
var LCNDomainOrOriginValidator = z.union([
|
5232
|
+
z.string().regex(
|
5233
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5234
|
+
{
|
5235
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
5236
|
+
}
|
5237
|
+
),
|
5238
|
+
z.string().regex(
|
5239
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
5240
|
+
{ message: "Must be a valid http(s) origin" }
|
5241
|
+
)
|
5242
|
+
]);
|
5243
|
+
var LCNIntegrationValidator = z.object({
|
5244
|
+
id: z.string(),
|
5245
|
+
name: z.string(),
|
5246
|
+
description: z.string().optional(),
|
5247
|
+
publishableKey: z.string(),
|
5248
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5249
|
+
});
|
5250
|
+
var LCNIntegrationCreateValidator = z.object({
|
5251
|
+
name: z.string(),
|
5252
|
+
description: z.string().optional(),
|
5253
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
5254
|
+
});
|
5255
|
+
var LCNIntegrationUpdateValidator = z.object({
|
5256
|
+
name: z.string().optional(),
|
5257
|
+
description: z.string().optional(),
|
5258
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
5259
|
+
rotatePublishableKey: z.boolean().optional()
|
5260
|
+
});
|
5261
|
+
var LCNIntegrationQueryValidator = z.object({
|
5262
|
+
id: StringQuery,
|
5263
|
+
name: StringQuery,
|
5264
|
+
description: StringQuery
|
5265
|
+
}).partial();
|
5266
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
5267
|
+
records: LCNIntegrationValidator.array()
|
5268
|
+
});
|
5200
5269
|
var ClaimTokenValidator = z.object({
|
5201
5270
|
token: z.string(),
|
5202
5271
|
contactMethodId: z.string(),
|