@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.
@@ -84,6 +84,7 @@ var require_types_cjs_development = __commonJS({
84
84
  var __toCommonJS2 = /* @__PURE__ */ __name2((mod2) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod2), "__toCommonJS");
85
85
  var src_exports2 = {};
86
86
  __export2(src_exports2, {
87
+ AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
87
88
  AchievementCredentialValidator: () => AchievementCredentialValidator,
88
89
  AchievementCriteriaValidator: () => AchievementCriteriaValidator,
89
90
  AchievementSubjectValidator: () => AchievementSubjectValidator,
@@ -92,6 +93,9 @@ var require_types_cjs_development = __commonJS({
92
93
  AddressValidator: () => AddressValidator,
93
94
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
94
95
  AlignmentValidator: () => AlignmentValidator,
96
+ AuthGrantQueryValidator: () => AuthGrantQueryValidator,
97
+ AuthGrantStatusValidator: () => AuthGrantStatusValidator,
98
+ AuthGrantValidator: () => AuthGrantValidator,
95
99
  AutoBoostConfigValidator: () => AutoBoostConfigValidator,
96
100
  BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
97
101
  BoostPermissionsValidator: () => BoostPermissionsValidator,
@@ -129,6 +133,7 @@ var require_types_cjs_development = __commonJS({
129
133
  EndorsementCredentialValidator: () => EndorsementCredentialValidator,
130
134
  EndorsementSubjectValidator: () => EndorsementSubjectValidator,
131
135
  EvidenceValidator: () => EvidenceValidator,
136
+ FlatAuthGrantValidator: () => FlatAuthGrantValidator,
132
137
  FullClaimHookValidator: () => FullClaimHookValidator,
133
138
  GeoCoordinatesValidator: () => GeoCoordinatesValidator,
134
139
  IdentifierEntryValidator: () => IdentifierEntryValidator,
@@ -175,6 +180,7 @@ var require_types_cjs_development = __commonJS({
175
180
  ProfileValidator: () => ProfileValidator,
176
181
  ProofValidator: () => ProofValidator,
177
182
  RefreshServiceValidator: () => RefreshServiceValidator,
183
+ RegExpValidator: () => RegExpValidator,
178
184
  RelatedValidator: () => RelatedValidator,
179
185
  ResultDescriptionValidator: () => ResultDescriptionValidator,
180
186
  ResultStatusTypeValidator: () => ResultStatusTypeValidator,
@@ -183,6 +189,7 @@ var require_types_cjs_development = __commonJS({
183
189
  RubricCriterionValidator: () => RubricCriterionValidator,
184
190
  SentCredentialInfoValidator: () => SentCredentialInfoValidator,
185
191
  ServiceValidator: () => ServiceValidator,
192
+ StringQuery: () => StringQuery,
186
193
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
187
194
  UnsignedVCValidator: () => UnsignedVCValidator,
188
195
  UnsignedVPValidator: () => UnsignedVPValidator,
@@ -4362,6 +4369,28 @@ var require_types_cjs_development = __commonJS({
4362
4369
  data: LCNNotificationDataValidator.optional(),
4363
4370
  sent: mod.string().datetime().optional()
4364
4371
  });
4372
+ var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
4373
+ var AuthGrantValidator = mod.object({
4374
+ id: mod.string(),
4375
+ name: mod.string(),
4376
+ description: mod.string().optional(),
4377
+ challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
4378
+ status: mod.enum(["revoked", "active"], {
4379
+ required_error: "Status is required",
4380
+ invalid_type_error: "Status must be either active or revoked"
4381
+ }),
4382
+ scope: mod.string(),
4383
+ createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
4384
+ expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
4385
+ });
4386
+ var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
4387
+ var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
4388
+ var AuthGrantQueryValidator = mod.object({
4389
+ id: StringQuery,
4390
+ name: StringQuery,
4391
+ description: StringQuery,
4392
+ status: AuthGrantStatusValidator
4393
+ }).partial();
4365
4394
  }
4366
4395
  });
4367
4396
  var require_dist = __commonJS({