@atproto/api
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -50,2 +50,5 @@ import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc'; | ||
import * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'; | ||
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'; | ||
import * as AppBskyGraphMute from './types/app/bsky/graph/mute'; | ||
import * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'; | ||
import * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'; | ||
@@ -110,2 +113,5 @@ import * as AppBskyNotificationList from './types/app/bsky/notification/list'; | ||
export * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'; | ||
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'; | ||
export * as AppBskyGraphMute from './types/app/bsky/graph/mute'; | ||
export * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'; | ||
export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'; | ||
@@ -368,2 +374,5 @@ export * as AppBskyNotificationList from './types/app/bsky/notification/list'; | ||
getMemberships(params?: AppBskyGraphGetMemberships.QueryParams, opts?: AppBskyGraphGetMemberships.CallOptions): Promise<AppBskyGraphGetMemberships.Response>; | ||
getMutes(params?: AppBskyGraphGetMutes.QueryParams, opts?: AppBskyGraphGetMutes.CallOptions): Promise<AppBskyGraphGetMutes.Response>; | ||
mute(data?: AppBskyGraphMute.InputSchema, opts?: AppBskyGraphMute.CallOptions): Promise<AppBskyGraphMute.Response>; | ||
unmute(data?: AppBskyGraphUnmute.InputSchema, opts?: AppBskyGraphUnmute.CallOptions): Promise<AppBskyGraphUnmute.Response>; | ||
} | ||
@@ -370,0 +379,0 @@ export declare class AssertionRecord { |
@@ -35,3 +35,4 @@ import { Headers } from '@atproto/xrpc'; | ||
member?: string; | ||
muted?: boolean; | ||
[k: string]: unknown; | ||
} |
@@ -13,3 +13,8 @@ import * as AppBskySystemDeclRef from '../system/declRef'; | ||
avatar?: string; | ||
viewer?: ViewerState; | ||
[k: string]: unknown; | ||
} | ||
export interface ViewerState { | ||
muted?: boolean; | ||
[k: string]: unknown; | ||
} |
@@ -53,3 +53,4 @@ import * as AppBskyEmbedImages from '../embed/images'; | ||
downvote?: string; | ||
muted?: boolean; | ||
[k: string]: unknown; | ||
} |
{ | ||
"name": "@atproto/api", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -64,2 +64,5 @@ /** | ||
import * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships' | ||
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' | ||
import * as AppBskyGraphMute from './types/app/bsky/graph/mute' | ||
import * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute' | ||
import * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount' | ||
@@ -128,2 +131,5 @@ import * as AppBskyNotificationList from './types/app/bsky/notification/list' | ||
export * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships' | ||
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' | ||
export * as AppBskyGraphMute from './types/app/bsky/graph/mute' | ||
export * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute' | ||
export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount' | ||
@@ -1088,2 +1094,35 @@ export * as AppBskyNotificationList from './types/app/bsky/notification/list' | ||
} | ||
getMutes( | ||
params?: AppBskyGraphGetMutes.QueryParams, | ||
opts?: AppBskyGraphGetMutes.CallOptions, | ||
): Promise<AppBskyGraphGetMutes.Response> { | ||
return this._service.xrpc | ||
.call('app.bsky.graph.getMutes', params, undefined, opts) | ||
.catch((e) => { | ||
throw AppBskyGraphGetMutes.toKnownErr(e) | ||
}) | ||
} | ||
mute( | ||
data?: AppBskyGraphMute.InputSchema, | ||
opts?: AppBskyGraphMute.CallOptions, | ||
): Promise<AppBskyGraphMute.Response> { | ||
return this._service.xrpc | ||
.call('app.bsky.graph.mute', opts?.qp, data, opts) | ||
.catch((e) => { | ||
throw AppBskyGraphMute.toKnownErr(e) | ||
}) | ||
} | ||
unmute( | ||
data?: AppBskyGraphUnmute.InputSchema, | ||
opts?: AppBskyGraphUnmute.CallOptions, | ||
): Promise<AppBskyGraphUnmute.Response> { | ||
return this._service.xrpc | ||
.call('app.bsky.graph.unmute', opts?.qp, data, opts) | ||
.catch((e) => { | ||
throw AppBskyGraphUnmute.toKnownErr(e) | ||
}) | ||
} | ||
} | ||
@@ -1090,0 +1129,0 @@ |
@@ -49,3 +49,4 @@ /** | ||
member?: string | ||
muted?: boolean | ||
[k: string]: unknown | ||
} |
@@ -18,3 +18,9 @@ /** | ||
avatar?: string | ||
viewer?: ViewerState | ||
[k: string]: unknown | ||
} | ||
export interface ViewerState { | ||
muted?: boolean | ||
[k: string]: unknown | ||
} |
@@ -35,2 +35,3 @@ /** | ||
/** A text segment. Start is inclusive, end is exclusive. */ | ||
export interface TextSlice { | ||
@@ -64,3 +65,4 @@ start: number | ||
downvote?: string | ||
muted?: boolean | ||
[k: string]: unknown | ||
} |
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 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
1118250
151
20565