@learncard/didkey-plugin 1.0.33 → 1.0.34

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.
@@ -60,6 +60,7 @@ var require_types_cjs_development = __commonJS({
60
60
  var __toCommonJS = /* @__PURE__ */ __name2((mod2) => __copyProps2(__defProp22({}, "__esModule", { value: true }), mod2), "__toCommonJS");
61
61
  var src_exports = {};
62
62
  __export(src_exports, {
63
+ AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
63
64
  AchievementCredentialValidator: () => AchievementCredentialValidator,
64
65
  AchievementCriteriaValidator: () => AchievementCriteriaValidator,
65
66
  AchievementSubjectValidator: () => AchievementSubjectValidator,
@@ -68,6 +69,9 @@ var require_types_cjs_development = __commonJS({
68
69
  AddressValidator: () => AddressValidator,
69
70
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
70
71
  AlignmentValidator: () => AlignmentValidator,
72
+ AuthGrantQueryValidator: () => AuthGrantQueryValidator,
73
+ AuthGrantStatusValidator: () => AuthGrantStatusValidator,
74
+ AuthGrantValidator: () => AuthGrantValidator,
71
75
  AutoBoostConfigValidator: () => AutoBoostConfigValidator,
72
76
  BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
73
77
  BoostPermissionsValidator: () => BoostPermissionsValidator,
@@ -105,6 +109,7 @@ var require_types_cjs_development = __commonJS({
105
109
  EndorsementCredentialValidator: () => EndorsementCredentialValidator,
106
110
  EndorsementSubjectValidator: () => EndorsementSubjectValidator,
107
111
  EvidenceValidator: () => EvidenceValidator,
112
+ FlatAuthGrantValidator: () => FlatAuthGrantValidator,
108
113
  FullClaimHookValidator: () => FullClaimHookValidator,
109
114
  GeoCoordinatesValidator: () => GeoCoordinatesValidator,
110
115
  IdentifierEntryValidator: () => IdentifierEntryValidator,
@@ -151,6 +156,7 @@ var require_types_cjs_development = __commonJS({
151
156
  ProfileValidator: () => ProfileValidator,
152
157
  ProofValidator: () => ProofValidator,
153
158
  RefreshServiceValidator: () => RefreshServiceValidator,
159
+ RegExpValidator: () => RegExpValidator,
154
160
  RelatedValidator: () => RelatedValidator,
155
161
  ResultDescriptionValidator: () => ResultDescriptionValidator,
156
162
  ResultStatusTypeValidator: () => ResultStatusTypeValidator,
@@ -159,6 +165,7 @@ var require_types_cjs_development = __commonJS({
159
165
  RubricCriterionValidator: () => RubricCriterionValidator,
160
166
  SentCredentialInfoValidator: () => SentCredentialInfoValidator,
161
167
  ServiceValidator: () => ServiceValidator,
168
+ StringQuery: () => StringQuery,
162
169
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
163
170
  UnsignedVCValidator: () => UnsignedVCValidator,
164
171
  UnsignedVPValidator: () => UnsignedVPValidator,
@@ -4338,6 +4345,28 @@ var require_types_cjs_development = __commonJS({
4338
4345
  data: LCNNotificationDataValidator.optional(),
4339
4346
  sent: mod.string().datetime().optional()
4340
4347
  });
4348
+ var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
4349
+ var AuthGrantValidator = mod.object({
4350
+ id: mod.string(),
4351
+ name: mod.string(),
4352
+ description: mod.string().optional(),
4353
+ challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
4354
+ status: mod.enum(["revoked", "active"], {
4355
+ required_error: "Status is required",
4356
+ invalid_type_error: "Status must be either active or revoked"
4357
+ }),
4358
+ scope: mod.string(),
4359
+ createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
4360
+ expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
4361
+ });
4362
+ var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
4363
+ var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
4364
+ var AuthGrantQueryValidator = mod.object({
4365
+ id: StringQuery,
4366
+ name: StringQuery,
4367
+ description: StringQuery,
4368
+ status: AuthGrantStatusValidator
4369
+ }).partial();
4341
4370
  }
4342
4371
  });
4343
4372
  var require_dist = __commonJS({