@atproto/api 0.1.0 → 0.1.1

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.
@@ -37,6 +37,7 @@ import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead';
37
37
  import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord';
38
38
  import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo';
39
39
  import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
40
+ import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
40
41
  import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
41
42
  import * as AppBskyActorProfile from './types/app/bsky/actor/profile';
42
43
  import * as AppBskyActorSearch from './types/app/bsky/actor/search';
@@ -111,6 +112,7 @@ export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead';
111
112
  export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord';
112
113
  export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo';
113
114
  export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
115
+ export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
114
116
  export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
115
117
  export * as AppBskyActorProfile from './types/app/bsky/actor/profile';
116
118
  export * as AppBskyActorRef from './types/app/bsky/actor/ref';
@@ -285,6 +287,7 @@ export declare class ActorNS {
285
287
  profile: ProfileRecord;
286
288
  constructor(service: AtpServiceClient);
287
289
  getProfile(params?: AppBskyActorGetProfile.QueryParams, opts?: AppBskyActorGetProfile.CallOptions): Promise<AppBskyActorGetProfile.Response>;
290
+ getProfiles(params?: AppBskyActorGetProfiles.QueryParams, opts?: AppBskyActorGetProfiles.CallOptions): Promise<AppBskyActorGetProfiles.Response>;
288
291
  getSuggestions(params?: AppBskyActorGetSuggestions.QueryParams, opts?: AppBskyActorGetSuggestions.CallOptions): Promise<AppBskyActorGetSuggestions.Response>;
289
292
  search(params?: AppBskyActorSearch.QueryParams, opts?: AppBskyActorSearch.CallOptions): Promise<AppBskyActorSearch.Response>;
290
293
  searchTypeahead(params?: AppBskyActorSearchTypeahead.QueryParams, opts?: AppBskyActorSearchTypeahead.CallOptions): Promise<AppBskyActorSearchTypeahead.Response>;
@@ -2001,7 +2001,11 @@ export declare const schemaDict: {
2001
2001
  type: string;
2002
2002
  description: string;
2003
2003
  };
2004
- from: {
2004
+ earliest: {
2005
+ type: string;
2006
+ description: string;
2007
+ };
2008
+ latest: {
2005
2009
  type: string;
2006
2010
  description: string;
2007
2011
  };
@@ -2091,6 +2095,44 @@ export declare const schemaDict: {
2091
2095
  };
2092
2096
  };
2093
2097
  };
2098
+ AppBskyActorGetProfiles: {
2099
+ lexicon: number;
2100
+ id: string;
2101
+ defs: {
2102
+ main: {
2103
+ type: string;
2104
+ parameters: {
2105
+ type: string;
2106
+ required: string[];
2107
+ properties: {
2108
+ actors: {
2109
+ type: string;
2110
+ items: {
2111
+ type: string;
2112
+ };
2113
+ maxLength: number;
2114
+ };
2115
+ };
2116
+ };
2117
+ output: {
2118
+ encoding: string;
2119
+ schema: {
2120
+ type: string;
2121
+ required: string[];
2122
+ properties: {
2123
+ profiles: {
2124
+ type: string;
2125
+ items: {
2126
+ type: string;
2127
+ ref: string;
2128
+ };
2129
+ };
2130
+ };
2131
+ };
2132
+ };
2133
+ };
2134
+ };
2135
+ };
2094
2136
  AppBskyActorGetSuggestions: {
2095
2137
  lexicon: number;
2096
2138
  id: string;
@@ -2199,6 +2241,63 @@ export declare const schemaDict: {
2199
2241
  };
2200
2242
  };
2201
2243
  };
2244
+ view: {
2245
+ type: string;
2246
+ required: string[];
2247
+ properties: {
2248
+ did: {
2249
+ type: string;
2250
+ };
2251
+ declaration: {
2252
+ type: string;
2253
+ ref: string;
2254
+ };
2255
+ handle: {
2256
+ type: string;
2257
+ };
2258
+ creator: {
2259
+ type: string;
2260
+ };
2261
+ displayName: {
2262
+ type: string;
2263
+ maxLength: number;
2264
+ };
2265
+ description: {
2266
+ type: string;
2267
+ maxLength: number;
2268
+ };
2269
+ avatar: {
2270
+ type: string;
2271
+ };
2272
+ banner: {
2273
+ type: string;
2274
+ };
2275
+ followersCount: {
2276
+ type: string;
2277
+ };
2278
+ followsCount: {
2279
+ type: string;
2280
+ };
2281
+ postsCount: {
2282
+ type: string;
2283
+ };
2284
+ myState: {
2285
+ type: string;
2286
+ ref: string;
2287
+ };
2288
+ };
2289
+ };
2290
+ myState: {
2291
+ type: string;
2292
+ properties: {
2293
+ follow: {
2294
+ type: string;
2295
+ };
2296
+ muted: {
2297
+ type: string;
2298
+ };
2299
+ };
2300
+ };
2202
2301
  };
2203
2302
  };
2204
2303
  AppBskyActorRef: {
@@ -3784,6 +3883,7 @@ export declare const ids: {
3784
3883
  ComAtprotoSyncGetRecord: string;
3785
3884
  ComAtprotoSyncGetRepo: string;
3786
3885
  AppBskyActorGetProfile: string;
3886
+ AppBskyActorGetProfiles: string;
3787
3887
  AppBskyActorGetSuggestions: string;
3788
3888
  AppBskyActorProfile: string;
3789
3889
  AppBskyActorRef: string;
@@ -0,0 +1,19 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyActorProfile from './profile';
3
+ export interface QueryParams {
4
+ actors: string[];
5
+ }
6
+ export declare type InputSchema = undefined;
7
+ export interface OutputSchema {
8
+ profiles: AppBskyActorProfile.View[];
9
+ [k: string]: unknown;
10
+ }
11
+ export interface CallOptions {
12
+ headers?: Headers;
13
+ }
14
+ export interface Response {
15
+ success: boolean;
16
+ headers: Headers;
17
+ data: OutputSchema;
18
+ }
19
+ export declare function toKnownErr(e: any): any;
@@ -1,4 +1,5 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskySystemDeclRef from '../system/declRef';
2
3
  export interface Record {
3
4
  displayName: string;
4
5
  description?: string;
@@ -16,3 +17,27 @@ export interface Record {
16
17
  }
17
18
  export declare function isRecord(v: unknown): v is Record;
18
19
  export declare function validateRecord(v: unknown): ValidationResult;
20
+ export interface View {
21
+ did: string;
22
+ declaration: AppBskySystemDeclRef.Main;
23
+ handle: string;
24
+ creator: string;
25
+ displayName?: string;
26
+ description?: string;
27
+ avatar?: string;
28
+ banner?: string;
29
+ followersCount: number;
30
+ followsCount: number;
31
+ postsCount: number;
32
+ myState?: MyState;
33
+ [k: string]: unknown;
34
+ }
35
+ export declare function isView(v: unknown): v is View;
36
+ export declare function validateView(v: unknown): ValidationResult;
37
+ export interface MyState {
38
+ follow?: string;
39
+ muted?: boolean;
40
+ [k: string]: unknown;
41
+ }
42
+ export declare function isMyState(v: unknown): v is MyState;
43
+ export declare function validateMyState(v: unknown): ValidationResult;
@@ -1,7 +1,8 @@
1
1
  import { Headers } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  did: string;
4
- from?: string;
4
+ earliest?: string;
5
+ latest?: string;
5
6
  }
6
7
  export declare type InputSchema = undefined;
7
8
  export interface CallOptions {