@atproto/xrpc 0.3.1 → 0.3.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 +14 -0
- package/README.md +6 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +3 -3
- package/package.json +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atproto/xrpc
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @atproto/lexicon@0.2.3
|
|
9
|
+
|
|
10
|
+
## 0.3.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @atproto/lexicon@0.2.2
|
|
16
|
+
|
|
3
17
|
## 0.3.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @atproto/xrpc: atproto HTTP API Client
|
|
2
|
+
|
|
3
|
+
TypeScript client library for talking to [atproto](https://atproto.com) services, with Lexicon schema validation.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@atproto/xrpc)
|
|
6
|
+
[](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml)
|
|
2
7
|
|
|
3
8
|
## Usage
|
|
4
9
|
|
package/dist/index.js
CHANGED
|
@@ -13960,6 +13960,25 @@ var validateLanguage = (langTag) => {
|
|
|
13960
13960
|
};
|
|
13961
13961
|
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})+))$/;
|
|
13962
13962
|
|
|
13963
|
+
// ../common-web/src/did-doc.ts
|
|
13964
|
+
var verificationMethod = z.object({
|
|
13965
|
+
id: z.string(),
|
|
13966
|
+
type: z.string(),
|
|
13967
|
+
controller: z.string(),
|
|
13968
|
+
publicKeyMultibase: z.string().optional()
|
|
13969
|
+
});
|
|
13970
|
+
var service = z.object({
|
|
13971
|
+
id: z.string(),
|
|
13972
|
+
type: z.string(),
|
|
13973
|
+
serviceEndpoint: z.union([z.string(), z.record(z.unknown())])
|
|
13974
|
+
});
|
|
13975
|
+
var didDocument = z.object({
|
|
13976
|
+
id: z.string(),
|
|
13977
|
+
alsoKnownAs: z.array(z.string()).optional(),
|
|
13978
|
+
verificationMethod: z.array(verificationMethod).optional(),
|
|
13979
|
+
service: z.array(service).optional()
|
|
13980
|
+
});
|
|
13981
|
+
|
|
13963
13982
|
// ../lexicon/src/validators/formats.ts
|
|
13964
13983
|
var import_iso_datestring_validator = __toESM(require_dist());
|
|
13965
13984
|
function datetime(path, value) {
|
|
@@ -14672,7 +14691,7 @@ var lexObject = z.object({
|
|
|
14672
14691
|
description: z.string().optional(),
|
|
14673
14692
|
required: z.string().array().optional(),
|
|
14674
14693
|
nullable: z.string().array().optional(),
|
|
14675
|
-
properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]))
|
|
14694
|
+
properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]))
|
|
14676
14695
|
}).strict().superRefine(requiredPropertiesRefinement);
|
|
14677
14696
|
var lexXrpcParameters = z.object({
|
|
14678
14697
|
type: z.literal("params"),
|