Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atproto/api

Package Overview
Dependencies
Maintainers
3
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atproto/api - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

dist/client/types/app/bsky/actor/getPreferences.d.ts

6

dist/client/index.d.ts

@@ -58,2 +58,3 @@ import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';

import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';

@@ -63,2 +64,3 @@ import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';

import * as AppBskyActorProfile from './types/app/bsky/actor/profile';
import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences';
import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors';

@@ -158,2 +160,3 @@ import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead';

export * as AppBskyActorDefs from './types/app/bsky/actor/defs';
export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';

@@ -163,2 +166,3 @@ export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';

export * as AppBskyActorProfile from './types/app/bsky/actor/profile';
export * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences';
export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors';

@@ -351,5 +355,7 @@ export * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead';

constructor(service: AtpServiceClient);
getPreferences(params?: AppBskyActorGetPreferences.QueryParams, opts?: AppBskyActorGetPreferences.CallOptions): Promise<AppBskyActorGetPreferences.Response>;
getProfile(params?: AppBskyActorGetProfile.QueryParams, opts?: AppBskyActorGetProfile.CallOptions): Promise<AppBskyActorGetProfile.Response>;
getProfiles(params?: AppBskyActorGetProfiles.QueryParams, opts?: AppBskyActorGetProfiles.CallOptions): Promise<AppBskyActorGetProfiles.Response>;
getSuggestions(params?: AppBskyActorGetSuggestions.QueryParams, opts?: AppBskyActorGetSuggestions.CallOptions): Promise<AppBskyActorGetSuggestions.Response>;
putPreferences(data?: AppBskyActorPutPreferences.InputSchema, opts?: AppBskyActorPutPreferences.CallOptions): Promise<AppBskyActorPutPreferences.Response>;
searchActors(params?: AppBskyActorSearchActors.QueryParams, opts?: AppBskyActorSearchActors.CallOptions): Promise<AppBskyActorSearchActors.Response>;

@@ -356,0 +362,0 @@ searchActorsTypeahead(params?: AppBskyActorSearchActorsTypeahead.QueryParams, opts?: AppBskyActorSearchActorsTypeahead.CallOptions): Promise<AppBskyActorSearchActorsTypeahead.Response>;

@@ -56,1 +56,18 @@ import { ValidationResult } from '@atproto/lexicon';

export declare function validateViewerState(v: unknown): ValidationResult;
export declare type Preferences = (AdultContentPref | ContentLabelPref | {
$type: string;
[k: string]: unknown;
})[];
export interface AdultContentPref {
enabled: boolean;
[k: string]: unknown;
}
export declare function isAdultContentPref(v: unknown): v is AdultContentPref;
export declare function validateAdultContentPref(v: unknown): ValidationResult;
export interface ContentLabelPref {
label: string;
visibility: 'show' | 'warn' | 'hide' | (string & {});
[k: string]: unknown;
}
export declare function isContentLabelPref(v: unknown): v is ContentLabelPref;
export declare function validateContentLabelPref(v: unknown): ValidationResult;

2

docs/rn-fetch-handler.ts

@@ -77,3 +77,3 @@ /**

} else {
throw new Error('TODO: non-textual response body')
resBody = await res.blob()
}

@@ -80,0 +80,0 @@ }

{
"name": "@atproto/api",
"version": "0.3.2",
"version": "0.3.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -106,1 +106,42 @@ /**

}
export type Preferences = (
| AdultContentPref
| ContentLabelPref
| { $type: string; [k: string]: unknown }
)[]
export interface AdultContentPref {
enabled: boolean
[k: string]: unknown
}
export function isAdultContentPref(v: unknown): v is AdultContentPref {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.actor.defs#adultContentPref'
)
}
export function validateAdultContentPref(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.defs#adultContentPref', v)
}
export interface ContentLabelPref {
label: string
visibility: 'show' | 'warn' | 'hide' | (string & {})
[k: string]: unknown
}
export function isContentLabelPref(v: unknown): v is ContentLabelPref {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.actor.defs#contentLabelPref'
)
}
export function validateContentLabelPref(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.defs#contentLabelPref', 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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc