@atproto/lexicon 0.2.2 → 0.2.3

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atproto/lexicon
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`35d108ce`](https://github.com/bluesky-social/atproto/commit/35d108ce94866ce1b3d147cd0620a0ba1c4ebcd7)]:
8
+ - @atproto/common-web@0.2.2
9
+ - @atproto/syntax@0.1.3
10
+
3
11
  ## 0.2.2
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -13916,6 +13916,25 @@ var validateLanguage = (langTag) => {
13916
13916
  };
13917
13917
  var bcp47Regexp = /^((?<grandfathered>(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUseA>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUseB>x(-[A-Za-z0-9]{1,8})+))$/;
13918
13918
 
13919
+ // ../common-web/src/did-doc.ts
13920
+ var verificationMethod = z.object({
13921
+ id: z.string(),
13922
+ type: z.string(),
13923
+ controller: z.string(),
13924
+ publicKeyMultibase: z.string().optional()
13925
+ });
13926
+ var service = z.object({
13927
+ id: z.string(),
13928
+ type: z.string(),
13929
+ serviceEndpoint: z.union([z.string(), z.record(z.unknown())])
13930
+ });
13931
+ var didDocument = z.object({
13932
+ id: z.string(),
13933
+ alsoKnownAs: z.array(z.string()).optional(),
13934
+ verificationMethod: z.array(verificationMethod).optional(),
13935
+ service: z.array(service).optional()
13936
+ });
13937
+
13919
13938
  // src/validators/formats.ts
13920
13939
  var import_iso_datestring_validator = __toESM(require_dist());
13921
13940
  function datetime(path, value) {