@atproto/api 0.15.6 → 0.15.7

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.
@@ -2,11 +2,13 @@
2
2
  * GENERATED CODE - DO NOT MODIFY
3
3
  */
4
4
  import { HeadersMap } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
5
6
  export interface QueryParams {
6
7
  }
7
8
  export type InputSchema = undefined;
8
9
  export interface OutputSchema {
9
10
  checkEmailConfirmed?: boolean;
11
+ liveNow?: LiveNowConfig[];
10
12
  }
11
13
  export interface CallOptions {
12
14
  signal?: AbortSignal;
@@ -18,4 +20,11 @@ export interface Response {
18
20
  data: OutputSchema;
19
21
  }
20
22
  export declare function toKnownErr(e: any): any;
23
+ export interface LiveNowConfig {
24
+ $type?: 'app.bsky.unspecced.getConfig#liveNowConfig';
25
+ did: string;
26
+ domains: string[];
27
+ }
28
+ export declare function isLiveNowConfig<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getConfig", "liveNowConfig">;
29
+ export declare function validateLiveNowConfig<V>(v: V): ValidationResult<LiveNowConfig & V>;
21
30
  //# sourceMappingURL=getConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAcrD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
1
+ {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,OAAO,CAAC,EAAE,aAAa,EAAE,CAAA;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,4CAA4C,CAAA;IACpD,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oGAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toKnownErr = toKnownErr;
4
+ exports.isLiveNowConfig = isLiveNowConfig;
5
+ exports.validateLiveNowConfig = validateLiveNowConfig;
4
6
  const lexicons_1 = require("../../../../lexicons");
5
7
  const util_1 = require("../../../../util");
6
8
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
@@ -8,4 +10,11 @@ const id = 'app.bsky.unspecced.getConfig';
8
10
  function toKnownErr(e) {
9
11
  return e;
10
12
  }
13
+ const hashLiveNowConfig = 'liveNowConfig';
14
+ function isLiveNowConfig(v) {
15
+ return is$typed(v, id, hashLiveNowConfig);
16
+ }
17
+ function validateLiveNowConfig(v) {
18
+ return validate(v, id, hashLiveNowConfig);
19
+ }
11
20
  //# sourceMappingURL=getConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getConfig.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getConfig.ts"],"names":[],"mappings":";;AAoCA,gCAEC;AAhCD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,CAAA;AAqBzC,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
1
+ {"version":3,"file":"getConfig.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getConfig.ts"],"names":[],"mappings":";;AAqCA,gCAEC;AAUD,0CAEC;AAED,sDAEC;AAjDD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,CAAA;AAsBzC,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAQD,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAEzC,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC3C,CAAC;AAED,SAAgB,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAoB,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.15.6",
3
+ "version": "0.15.7",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -128,8 +128,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
128
128
  import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
129
129
  import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
130
130
  import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
131
- import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
132
131
  import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
132
+ import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
133
133
  import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
134
134
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
135
135
  import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
@@ -389,8 +389,8 @@ export * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
389
389
  export * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
390
390
  export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
391
391
  export * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
392
- export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
393
392
  export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
393
+ export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
394
394
  export * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
395
395
  export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
396
396
  export * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
@@ -2103,6 +2103,13 @@ export class AppBskyFeedNS {
2103
2103
  })
2104
2104
  }
2105
2105
 
2106
+ getPosts(
2107
+ params?: AppBskyFeedGetPosts.QueryParams,
2108
+ opts?: AppBskyFeedGetPosts.CallOptions,
2109
+ ): Promise<AppBskyFeedGetPosts.Response> {
2110
+ return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
2111
+ }
2112
+
2106
2113
  getPostThread(
2107
2114
  params?: AppBskyFeedGetPostThread.QueryParams,
2108
2115
  opts?: AppBskyFeedGetPostThread.CallOptions,
@@ -2114,13 +2121,6 @@ export class AppBskyFeedNS {
2114
2121
  })
2115
2122
  }
2116
2123
 
2117
- getPosts(
2118
- params?: AppBskyFeedGetPosts.QueryParams,
2119
- opts?: AppBskyFeedGetPosts.CallOptions,
2120
- ): Promise<AppBskyFeedGetPosts.Response> {
2121
- return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
2122
- }
2123
-
2124
2124
  getQuotes(
2125
2125
  params?: AppBskyFeedGetQuotes.QueryParams,
2126
2126
  opts?: AppBskyFeedGetQuotes.CallOptions,
@@ -7213,6 +7213,48 @@ export const schemaDict = {
7213
7213
  },
7214
7214
  },
7215
7215
  },
7216
+ AppBskyFeedGetPosts: {
7217
+ lexicon: 1,
7218
+ id: 'app.bsky.feed.getPosts',
7219
+ defs: {
7220
+ main: {
7221
+ type: 'query',
7222
+ description:
7223
+ "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7224
+ parameters: {
7225
+ type: 'params',
7226
+ required: ['uris'],
7227
+ properties: {
7228
+ uris: {
7229
+ type: 'array',
7230
+ description: 'List of post AT-URIs to return hydrated views for.',
7231
+ items: {
7232
+ type: 'string',
7233
+ format: 'at-uri',
7234
+ },
7235
+ maxLength: 25,
7236
+ },
7237
+ },
7238
+ },
7239
+ output: {
7240
+ encoding: 'application/json',
7241
+ schema: {
7242
+ type: 'object',
7243
+ required: ['posts'],
7244
+ properties: {
7245
+ posts: {
7246
+ type: 'array',
7247
+ items: {
7248
+ type: 'ref',
7249
+ ref: 'lex:app.bsky.feed.defs#postView',
7250
+ },
7251
+ },
7252
+ },
7253
+ },
7254
+ },
7255
+ },
7256
+ },
7257
+ },
7216
7258
  AppBskyFeedGetPostThread: {
7217
7259
  lexicon: 1,
7218
7260
  id: 'app.bsky.feed.getPostThread',
@@ -7277,48 +7319,6 @@ export const schemaDict = {
7277
7319
  },
7278
7320
  },
7279
7321
  },
7280
- AppBskyFeedGetPosts: {
7281
- lexicon: 1,
7282
- id: 'app.bsky.feed.getPosts',
7283
- defs: {
7284
- main: {
7285
- type: 'query',
7286
- description:
7287
- "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7288
- parameters: {
7289
- type: 'params',
7290
- required: ['uris'],
7291
- properties: {
7292
- uris: {
7293
- type: 'array',
7294
- description: 'List of post AT-URIs to return hydrated views for.',
7295
- items: {
7296
- type: 'string',
7297
- format: 'at-uri',
7298
- },
7299
- maxLength: 25,
7300
- },
7301
- },
7302
- },
7303
- output: {
7304
- encoding: 'application/json',
7305
- schema: {
7306
- type: 'object',
7307
- required: ['posts'],
7308
- properties: {
7309
- posts: {
7310
- type: 'array',
7311
- items: {
7312
- type: 'ref',
7313
- ref: 'lex:app.bsky.feed.defs#postView',
7314
- },
7315
- },
7316
- },
7317
- },
7318
- },
7319
- },
7320
- },
7321
- },
7322
7322
  AppBskyFeedGetQuotes: {
7323
7323
  lexicon: 1,
7324
7324
  id: 'app.bsky.feed.getQuotes',
@@ -10183,6 +10183,29 @@ export const schemaDict = {
10183
10183
  checkEmailConfirmed: {
10184
10184
  type: 'boolean',
10185
10185
  },
10186
+ liveNow: {
10187
+ type: 'array',
10188
+ items: {
10189
+ type: 'ref',
10190
+ ref: 'lex:app.bsky.unspecced.getConfig#liveNowConfig',
10191
+ },
10192
+ },
10193
+ },
10194
+ },
10195
+ },
10196
+ },
10197
+ liveNowConfig: {
10198
+ type: 'object',
10199
+ required: ['did', 'domains'],
10200
+ properties: {
10201
+ did: {
10202
+ type: 'string',
10203
+ format: 'did',
10204
+ },
10205
+ domains: {
10206
+ type: 'array',
10207
+ items: {
10208
+ type: 'string',
10186
10209
  },
10187
10210
  },
10188
10211
  },
@@ -16216,8 +16239,8 @@ export const ids = {
16216
16239
  AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
16217
16240
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
16218
16241
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
16219
- AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
16220
16242
  AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
16243
+ AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
16221
16244
  AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
16222
16245
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
16223
16246
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
@@ -21,6 +21,7 @@ export type InputSchema = undefined
21
21
 
22
22
  export interface OutputSchema {
23
23
  checkEmailConfirmed?: boolean
24
+ liveNow?: LiveNowConfig[]
24
25
  }
25
26
 
26
27
  export interface CallOptions {
@@ -37,3 +38,19 @@ export interface Response {
37
38
  export function toKnownErr(e: any) {
38
39
  return e
39
40
  }
41
+
42
+ export interface LiveNowConfig {
43
+ $type?: 'app.bsky.unspecced.getConfig#liveNowConfig'
44
+ did: string
45
+ domains: string[]
46
+ }
47
+
48
+ const hashLiveNowConfig = 'liveNowConfig'
49
+
50
+ export function isLiveNowConfig<V>(v: V) {
51
+ return is$typed(v, id, hashLiveNowConfig)
52
+ }
53
+
54
+ export function validateLiveNowConfig<V>(v: V) {
55
+ return validate<LiveNowConfig & V>(v, id, hashLiveNowConfig)
56
+ }