@atproto/api
Advanced tools
Comparing version 0.11.0 to 0.11.1
# @atproto/api | ||
## 0.11.1 | ||
### Patch Changes | ||
- [#2312](https://github.com/bluesky-social/atproto/pull/2312) [`219480764`](https://github.com/bluesky-social/atproto/commit/2194807644cbdb0021e867437693300c1b0e55f5) Thanks [@pfrazee](https://github.com/pfrazee)! - Fixed an issue that would cause agent clones to drop the PDS URI config. | ||
## 0.11.0 | ||
@@ -4,0 +10,0 @@ |
@@ -11,2 +11,3 @@ import { Headers } from '@atproto/xrpc'; | ||
links?: Links; | ||
contact?: Contact; | ||
did: string; | ||
@@ -31,1 +32,7 @@ [k: string]: unknown; | ||
export declare function validateLinks(v: unknown): ValidationResult; | ||
export interface Contact { | ||
email?: string; | ||
[k: string]: unknown; | ||
} | ||
export declare function isContact(v: unknown): v is Contact; | ||
export declare function validateContact(v: unknown): ValidationResult; |
{ | ||
"name": "@atproto/api", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "description": "Client library for atproto and Bluesky", | ||
"@atproto/lex-cli": "^0.3.2", | ||
"@atproto/dev-env": "^0.2.38" | ||
"@atproto/dev-env": "^0.2.39" | ||
}, | ||
@@ -35,0 +35,0 @@ "scripts": { |
@@ -94,2 +94,3 @@ import { ErrorResponseBody, errorResponseBody } from '@atproto/xrpc' | ||
inst.pdsUrl = this.pdsUrl | ||
inst.api.xrpc.uri = this.pdsUrl || this.service | ||
} | ||
@@ -96,0 +97,0 @@ |
@@ -22,2 +22,3 @@ /** | ||
links?: Links | ||
contact?: Contact | ||
did: string | ||
@@ -60,1 +61,18 @@ [k: string]: unknown | ||
} | ||
export interface Contact { | ||
email?: string | ||
[k: string]: unknown | ||
} | ||
export function isContact(v: unknown): v is Contact { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'com.atproto.server.describeServer#contact' | ||
) | ||
} | ||
export function validateContact(v: unknown): ValidationResult { | ||
return lexicons.validate('com.atproto.server.describeServer#contact', v) | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4842842
76655