@atproto/api
Advanced tools
Comparing version 0.3.12 to 0.3.13
@@ -347,4 +347,4 @@ import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc'; | ||
listRepos(params?: ComAtprotoSyncListRepos.QueryParams, opts?: ComAtprotoSyncListRepos.CallOptions): Promise<ComAtprotoSyncListRepos.Response>; | ||
notifyOfUpdate(params?: ComAtprotoSyncNotifyOfUpdate.QueryParams, opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions): Promise<ComAtprotoSyncNotifyOfUpdate.Response>; | ||
requestCrawl(params?: ComAtprotoSyncRequestCrawl.QueryParams, opts?: ComAtprotoSyncRequestCrawl.CallOptions): Promise<ComAtprotoSyncRequestCrawl.Response>; | ||
notifyOfUpdate(data?: ComAtprotoSyncNotifyOfUpdate.InputSchema, opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions): Promise<ComAtprotoSyncNotifyOfUpdate.Response>; | ||
requestCrawl(data?: ComAtprotoSyncRequestCrawl.InputSchema, opts?: ComAtprotoSyncRequestCrawl.CallOptions): Promise<ComAtprotoSyncRequestCrawl.Response>; | ||
} | ||
@@ -351,0 +351,0 @@ export declare class AppNS { |
import { ValidationResult } from '@atproto/lexicon'; | ||
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'; | ||
import * as AppBskyFeedDefs from '../feed/defs'; | ||
import * as AppBskyGraphDefs from '../graph/defs'; | ||
import * as AppBskyActorDefs from '../actor/defs'; | ||
@@ -16,3 +17,3 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'; | ||
export interface View { | ||
record: ViewRecord | ViewNotFound | ViewBlocked | AppBskyFeedDefs.GeneratorView | { | ||
record: ViewRecord | ViewNotFound | ViewBlocked | AppBskyFeedDefs.GeneratorView | AppBskyGraphDefs.ListView | { | ||
$type: string; | ||
@@ -19,0 +20,0 @@ [k: string]: unknown; |
@@ -97,3 +97,3 @@ import { ValidationResult } from '@atproto/lexicon'; | ||
cid: string; | ||
did?: string; | ||
did: string; | ||
creator: AppBskyActorDefs.ProfileView; | ||
@@ -100,0 +100,0 @@ displayName: string; |
@@ -17,2 +17,3 @@ import { ValidationResult } from '@atproto/lexicon'; | ||
}; | ||
langs?: string[]; | ||
createdAt: string; | ||
@@ -19,0 +20,0 @@ [k: string]: unknown; |
@@ -6,2 +6,3 @@ import { ValidationResult } from '@atproto/lexicon'; | ||
uri: string; | ||
cid: string; | ||
name: string; | ||
@@ -18,2 +19,3 @@ purpose: ListPurpose; | ||
uri: string; | ||
cid: string; | ||
creator: AppBskyActorDefs.ProfileView; | ||
@@ -20,0 +22,0 @@ name: string; |
@@ -1,2 +0,2 @@ | ||
import { Headers } from '@atproto/xrpc'; | ||
import { Headers, XRPCError } from '@atproto/xrpc'; | ||
export interface QueryParams { | ||
@@ -18,2 +18,5 @@ did: string; | ||
} | ||
export declare class HeadNotFoundError extends XRPCError { | ||
constructor(src: XRPCError); | ||
} | ||
export declare function toKnownErr(e: any): any; |
import { Headers } from '@atproto/xrpc'; | ||
export interface QueryParams { | ||
} | ||
export interface InputSchema { | ||
hostname: string; | ||
[k: string]: unknown; | ||
} | ||
export declare type InputSchema = undefined; | ||
export interface CallOptions { | ||
headers?: Headers; | ||
qp?: QueryParams; | ||
encoding: 'application/json'; | ||
} | ||
@@ -9,0 +13,0 @@ export interface Response { |
import { Headers } from '@atproto/xrpc'; | ||
export interface QueryParams { | ||
} | ||
export interface InputSchema { | ||
hostname: string; | ||
[k: string]: unknown; | ||
} | ||
export declare type InputSchema = undefined; | ||
export interface CallOptions { | ||
headers?: Headers; | ||
qp?: QueryParams; | ||
encoding: 'application/json'; | ||
} | ||
@@ -9,0 +13,0 @@ export interface Response { |
export { AtUri } from '@atproto/uri'; | ||
export { BlobRef, lexToJson, stringifyLex, jsonToLex, jsonStringToLex, } from '@atproto/lexicon'; | ||
export { parseLanguage } from '@atproto/common-web'; | ||
export * from './types'; | ||
@@ -4,0 +5,0 @@ export * from './client'; |
{ | ||
"name": "@atproto/api", | ||
"version": "0.3.12", | ||
"version": "0.3.13", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -10,2 +10,3 @@ /** | ||
import * as AppBskyFeedDefs from '../feed/defs' | ||
import * as AppBskyGraphDefs from '../graph/defs' | ||
import * as AppBskyActorDefs from '../actor/defs' | ||
@@ -41,2 +42,3 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' | ||
| AppBskyFeedDefs.GeneratorView | ||
| AppBskyGraphDefs.ListView | ||
| { $type: string; [k: string]: unknown } | ||
@@ -43,0 +45,0 @@ [k: string]: unknown |
@@ -192,3 +192,3 @@ /** | ||
cid: string | ||
did?: string | ||
did: string | ||
creator: AppBskyActorDefs.ProfileView | ||
@@ -195,0 +195,0 @@ displayName: string |
@@ -27,2 +27,3 @@ /** | ||
| { $type: string; [k: string]: unknown } | ||
langs?: string[] | ||
createdAt: string | ||
@@ -29,0 +30,0 @@ [k: string]: unknown |
@@ -13,2 +13,3 @@ /** | ||
uri: string | ||
cid: string | ||
name: string | ||
@@ -36,2 +37,3 @@ purpose: ListPurpose | ||
uri: string | ||
cid: string | ||
creator: AppBskyActorDefs.ProfileView | ||
@@ -38,0 +40,0 @@ name: string |
@@ -32,6 +32,13 @@ /** | ||
export class HeadNotFoundError extends XRPCError { | ||
constructor(src: XRPCError) { | ||
super(src.status, src.error, src.message) | ||
} | ||
} | ||
export function toKnownErr(e: any) { | ||
if (e instanceof XRPCError) { | ||
if (e.error === 'HeadNotFound') return new HeadNotFoundError(e) | ||
} | ||
return e | ||
} |
@@ -10,11 +10,14 @@ /** | ||
export interface QueryParams { | ||
export interface QueryParams {} | ||
export interface InputSchema { | ||
/** Hostname of the service that is notifying of update. */ | ||
hostname: string | ||
[k: string]: unknown | ||
} | ||
export type InputSchema = undefined | ||
export interface CallOptions { | ||
headers?: Headers | ||
qp?: QueryParams | ||
encoding: 'application/json' | ||
} | ||
@@ -21,0 +24,0 @@ |
@@ -10,11 +10,14 @@ /** | ||
export interface QueryParams { | ||
export interface QueryParams {} | ||
export interface InputSchema { | ||
/** Hostname of the service that is requesting to be crawled. */ | ||
hostname: string | ||
[k: string]: unknown | ||
} | ||
export type InputSchema = undefined | ||
export interface CallOptions { | ||
headers?: Headers | ||
qp?: QueryParams | ||
encoding: 'application/json' | ||
} | ||
@@ -21,0 +24,0 @@ |
@@ -9,2 +9,3 @@ export { AtUri } from '@atproto/uri' | ||
} from '@atproto/lexicon' | ||
export { parseLanguage } from '@atproto/common-web' | ||
export * from './types' | ||
@@ -11,0 +12,0 @@ export * from './client' |
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
3780771
54278