@learncard/network-brain-client 2.4.6 → 2.4.7
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/CHANGELOG.md +7 -0
- package/dist/brain-client.cjs.development.js +70 -1
- package/dist/brain-client.cjs.development.js.map +2 -2
- package/dist/brain-client.cjs.production.min.js +1 -1
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +70 -1
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -100,6 +100,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
100
100
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
101
101
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
102
102
|
ClaimHookValidator: () => ClaimHookValidator,
|
|
103
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
|
|
103
104
|
ClaimTokenValidator: () => ClaimTokenValidator,
|
|
104
105
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
|
105
106
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
@@ -122,6 +123,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
122
123
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
|
123
124
|
ContextValidator: () => ContextValidator,
|
|
124
125
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
|
126
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
|
127
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
|
125
128
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
|
126
129
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
|
127
130
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
|
@@ -155,8 +158,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
155
158
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
156
159
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
157
160
|
LCNBoostStatus: () => LCNBoostStatus,
|
|
161
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
|
|
158
162
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
|
159
163
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
|
164
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
|
|
165
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
|
|
166
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
|
|
167
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator,
|
|
160
168
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
|
161
169
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
|
162
170
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
|
@@ -183,6 +191,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
183
191
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
|
184
192
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
|
185
193
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
|
194
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
|
|
186
195
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
|
187
196
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
|
188
197
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
|
@@ -5091,7 +5100,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5091
5100
|
type: z.string(),
|
|
5092
5101
|
value: z.string()
|
|
5093
5102
|
});
|
|
5094
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
5103
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
5104
|
+
"PENDING",
|
|
5105
|
+
"ISSUED",
|
|
5106
|
+
"EXPIRED",
|
|
5107
|
+
"DELIVERED",
|
|
5108
|
+
"CLAIMED"
|
|
5109
|
+
]);
|
|
5095
5110
|
var LCNNotificationInboxValidator = z.object({
|
|
5096
5111
|
issuanceId: z.string(),
|
|
5097
5112
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -5189,11 +5204,19 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5189
5204
|
var SetPrimaryContactMethodValidator = z.object({
|
|
5190
5205
|
contactMethodId: z.string()
|
|
5191
5206
|
});
|
|
5207
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
5208
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
5209
|
+
otpChallenge: z.string()
|
|
5210
|
+
});
|
|
5211
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
5212
|
+
sessionJwt: z.string()
|
|
5213
|
+
});
|
|
5192
5214
|
var InboxCredentialValidator = z.object({
|
|
5193
5215
|
id: z.string(),
|
|
5194
5216
|
credential: z.string(),
|
|
5195
5217
|
isSigned: z.boolean(),
|
|
5196
5218
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
5219
|
+
isAccepted: z.boolean().optional(),
|
|
5197
5220
|
expiresAt: z.string(),
|
|
5198
5221
|
createdAt: z.string(),
|
|
5199
5222
|
issuerDid: z.string(),
|
|
@@ -5212,6 +5235,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5212
5235
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
5213
5236
|
id: z.string(),
|
|
5214
5237
|
isSigned: z.boolean(),
|
|
5238
|
+
isAccepted: z.boolean().optional(),
|
|
5215
5239
|
issuerDid: z.string()
|
|
5216
5240
|
}).partial();
|
|
5217
5241
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -5253,6 +5277,51 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5253
5277
|
claimUrl: z.string().url().optional(),
|
|
5254
5278
|
recipientDid: z.string().optional()
|
|
5255
5279
|
});
|
|
5280
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
5281
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
5282
|
+
configuration: z.object({
|
|
5283
|
+
publishableKey: z.string(),
|
|
5284
|
+
signingAuthorityName: z.string().optional()
|
|
5285
|
+
}).optional()
|
|
5286
|
+
});
|
|
5287
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
5288
|
+
z.string().regex(
|
|
5289
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5290
|
+
{
|
|
5291
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
5292
|
+
}
|
|
5293
|
+
),
|
|
5294
|
+
z.string().regex(
|
|
5295
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5296
|
+
{ message: "Must be a valid http(s) origin" }
|
|
5297
|
+
)
|
|
5298
|
+
]);
|
|
5299
|
+
var LCNIntegrationValidator = z.object({
|
|
5300
|
+
id: z.string(),
|
|
5301
|
+
name: z.string(),
|
|
5302
|
+
description: z.string().optional(),
|
|
5303
|
+
publishableKey: z.string(),
|
|
5304
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5305
|
+
});
|
|
5306
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
5307
|
+
name: z.string(),
|
|
5308
|
+
description: z.string().optional(),
|
|
5309
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5310
|
+
});
|
|
5311
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
5312
|
+
name: z.string().optional(),
|
|
5313
|
+
description: z.string().optional(),
|
|
5314
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
5315
|
+
rotatePublishableKey: z.boolean().optional()
|
|
5316
|
+
});
|
|
5317
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
5318
|
+
id: StringQuery,
|
|
5319
|
+
name: StringQuery,
|
|
5320
|
+
description: StringQuery
|
|
5321
|
+
}).partial();
|
|
5322
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
5323
|
+
records: LCNIntegrationValidator.array()
|
|
5324
|
+
});
|
|
5256
5325
|
var ClaimTokenValidator = z.object({
|
|
5257
5326
|
token: z.string(),
|
|
5258
5327
|
contactMethodId: z.string(),
|