@atproto/api 0.31.1 → 0.31.2

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.
@@ -2894,7 +2894,7 @@ export const schemaDict = {
2894
2894
  },
2895
2895
  viewExternalSourceTheme: {
2896
2896
  type: 'object',
2897
- description: 'The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source.',
2897
+ description: 'The theme colors of an external source, such as a standard.site publication. These colors may be used when rendering an embed from that source.',
2898
2898
  properties: {
2899
2899
  backgroundRGB: {
2900
2900
  type: 'ref',
@@ -3074,6 +3074,21 @@ export const schemaDict = {
3074
3074
  ref: 'lex:app.bsky.actor.defs#profileViewBasic',
3075
3075
  },
3076
3076
  },
3077
+ viewer: {
3078
+ type: 'ref',
3079
+ ref: 'lex:app.bsky.embed.external#viewArticlePublicationViewerState',
3080
+ },
3081
+ },
3082
+ },
3083
+ viewArticlePublicationViewerState: {
3084
+ type: 'object',
3085
+ description: "Metadata about the requesting account's relationship with the subject publication. Only has meaningful content for authed requests.",
3086
+ properties: {
3087
+ subscription: {
3088
+ type: 'string',
3089
+ format: 'at-uri',
3090
+ description: "The requesting account's site.standard.graph.subscription record for this publication, if subscribed.",
3091
+ },
3077
3092
  },
3078
3093
  },
3079
3094
  viewArticlePublicationTheme: {
@@ -3148,6 +3163,11 @@ export const schemaDict = {
3148
3163
  },
3149
3164
  description: 'The media items in the gallery. Each item may be of a different type, but all types must be supported by the client.',
3150
3165
  },
3166
+ photoCount: {
3167
+ type: 'integer',
3168
+ minimum: 0,
3169
+ description: 'Total number of gallery item backlinks, independent of the items included in this view.',
3170
+ },
3151
3171
  likeCount: {
3152
3172
  type: 'integer',
3153
3173
  minimum: 0,
@@ -3246,6 +3266,11 @@ export const schemaDict = {
3246
3266
  type: 'string',
3247
3267
  format: 'datetime',
3248
3268
  },
3269
+ lastSeenAt: {
3270
+ type: 'string',
3271
+ format: 'datetime',
3272
+ description: 'When the livestream last reported that it was live. A livestream without endedAt is considered active until two minutes after its last heartbeat; clients can apply the same window to tell whether a cached view is still live.',
3273
+ },
3249
3274
  },
3250
3275
  },
3251
3276
  },
@@ -9549,6 +9574,18 @@ export const schemaDict = {
9549
9574
  format: 'uri',
9550
9575
  maxLength: 4096,
9551
9576
  },
9577
+ appStoreUrl: {
9578
+ type: 'string',
9579
+ format: 'uri',
9580
+ maxLength: 4096,
9581
+ description: 'Optional link to the app on the Apple App Store.',
9582
+ },
9583
+ googlePlayUrl: {
9584
+ type: 'string',
9585
+ format: 'uri',
9586
+ maxLength: 4096,
9587
+ description: 'Optional link to the app on Google Play.',
9588
+ },
9552
9589
  category: {
9553
9590
  type: 'string',
9554
9591
  maxLength: 100,
@@ -9556,7 +9593,7 @@ export const schemaDict = {
9556
9593
  profile: {
9557
9594
  type: 'ref',
9558
9595
  ref: 'lex:app.bsky.actor.defs#profileViewDetailed',
9559
- description: "The app's account profile, when available.",
9596
+ description: "The app's optional Bluesky account profile. Omitted when no profile is configured or the profile is unavailable.",
9560
9597
  },
9561
9598
  },
9562
9599
  },
@@ -9881,13 +9918,13 @@ export const schemaDict = {
9881
9918
  type: 'string',
9882
9919
  format: 'uri',
9883
9920
  maxLength: 4096,
9884
- description: 'Compatibility field. The profile avatar when available, otherwise the editorial logo.',
9921
+ description: 'The profile avatar when available, otherwise the editorial logo.',
9885
9922
  },
9886
9923
  backgroundImage: {
9887
9924
  type: 'string',
9888
9925
  format: 'uri',
9889
9926
  maxLength: 4096,
9890
- description: 'Compatibility field. The profile banner when available, otherwise the editorial background image.',
9927
+ description: 'The profile banner when available, otherwise the editorial background image.',
9891
9928
  },
9892
9929
  overlayColor: {
9893
9930
  type: 'string',
@@ -9904,6 +9941,18 @@ export const schemaDict = {
9904
9941
  format: 'uri',
9905
9942
  maxLength: 4096,
9906
9943
  },
9944
+ appStoreUrl: {
9945
+ type: 'string',
9946
+ format: 'uri',
9947
+ maxLength: 4096,
9948
+ description: 'Optional link to the app on the Apple App Store.',
9949
+ },
9950
+ googlePlayUrl: {
9951
+ type: 'string',
9952
+ format: 'uri',
9953
+ maxLength: 4096,
9954
+ description: 'Optional link to the app on Google Play.',
9955
+ },
9907
9956
  category: {
9908
9957
  type: 'string',
9909
9958
  maxLength: 4096,
@@ -9911,7 +9960,7 @@ export const schemaDict = {
9911
9960
  profile: {
9912
9961
  type: 'ref',
9913
9962
  ref: 'lex:app.bsky.actor.defs#profileViewDetailed',
9914
- description: "The app's account profile, when available.",
9963
+ description: "The app's optional Bluesky account profile. Omitted when no profile is configured or the profile is unavailable.",
9915
9964
  },
9916
9965
  },
9917
9966
  },
@@ -10190,6 +10239,256 @@ export const schemaDict = {
10190
10239
  },
10191
10240
  },
10192
10241
  },
10242
+ AppBskyUnspeccedGetAtmosphereTimelineV2: {
10243
+ lexicon: 1,
10244
+ id: 'app.bsky.unspecced.getAtmosphereTimelineV2',
10245
+ defs: {
10246
+ main: {
10247
+ type: 'query',
10248
+ description: "Get the requesting account's Atmosphere activity timeline, pre-grouped for rendering. Requires auth.",
10249
+ parameters: {
10250
+ type: 'params',
10251
+ properties: {
10252
+ cursor: {
10253
+ type: 'string',
10254
+ },
10255
+ },
10256
+ },
10257
+ output: {
10258
+ encoding: 'application/json',
10259
+ schema: {
10260
+ type: 'object',
10261
+ required: ['feed', 'relatedViews'],
10262
+ properties: {
10263
+ cursor: {
10264
+ type: 'string',
10265
+ },
10266
+ feed: {
10267
+ type: 'array',
10268
+ description: 'Activities and activity groups, sorted newest first by indexedAt. Groups and relatedActivity only contain activities from the same page of results. Activities by actors unavailable to the viewer are omitted before grouping. Clients should ignore entry types they do not recognize.',
10269
+ items: {
10270
+ type: 'union',
10271
+ refs: [
10272
+ 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activityItem',
10273
+ 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activityActorGroup',
10274
+ 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activitySubjectGroup',
10275
+ ],
10276
+ },
10277
+ },
10278
+ relatedViews: {
10279
+ type: 'array',
10280
+ description: "Reusable views referenced by feed entries. Views shared across entries appear once to avoid duplication. Always includes the profile of the actor of every activityItem and activityActorGroup, plus the profiles of at most the newest 3 distinct actors in each activitySubjectGroup and in each collection of an activityItem's relatedActivity. Ex: for a subject group of 12 recommendations, only the profiles of the 3 newest recommenders are included; clients can fetch the rest with app.bsky.actor.getProfiles.",
10281
+ items: {
10282
+ type: 'union',
10283
+ refs: ['lex:app.bsky.actor.defs#profileViewBasic'],
10284
+ },
10285
+ },
10286
+ },
10287
+ },
10288
+ },
10289
+ },
10290
+ activityItem: {
10291
+ type: 'object',
10292
+ description: 'A single activity with its hydrated subject. An activity that creates content, such as publishing an article, is always a standalone item when other activities on the same page target that content; those activities are attached as relatedActivity. Activities whose subject is unavailable to the viewer are omitted from the timeline.',
10293
+ required: ['ref', 'collection', 'indexedAt', 'actor', 'subject'],
10294
+ properties: {
10295
+ ref: {
10296
+ type: 'ref',
10297
+ ref: 'lex:com.atproto.repo.strongRef',
10298
+ },
10299
+ collection: {
10300
+ type: 'string',
10301
+ format: 'nsid',
10302
+ description: 'The collection of the activity record. Ex: site.standard.graph.recommend.',
10303
+ },
10304
+ indexedAt: {
10305
+ type: 'string',
10306
+ format: 'datetime',
10307
+ description: "When the activity was indexed. Determines the item's position in the feed, even when relatedActivity contains newer activities.",
10308
+ },
10309
+ actor: {
10310
+ type: 'string',
10311
+ format: 'did',
10312
+ },
10313
+ subject: {
10314
+ type: 'ref',
10315
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activitySubject',
10316
+ },
10317
+ relatedActivity: {
10318
+ type: 'array',
10319
+ description: 'All available activities on the same page that target content created by this activity, newest first. Ex: recommendations of a newly published article. Only present on activities that create content. Activities targeting content created on an earlier page appear as their own feed entries instead.',
10320
+ items: {
10321
+ type: 'ref',
10322
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activityItemRelatedActivity',
10323
+ },
10324
+ },
10325
+ },
10326
+ },
10327
+ activityItemRelatedActivity: {
10328
+ type: 'object',
10329
+ required: ['ref', 'collection', 'indexedAt', 'actor'],
10330
+ properties: {
10331
+ ref: {
10332
+ type: 'ref',
10333
+ ref: 'lex:com.atproto.repo.strongRef',
10334
+ },
10335
+ collection: {
10336
+ type: 'string',
10337
+ format: 'nsid',
10338
+ },
10339
+ indexedAt: {
10340
+ type: 'string',
10341
+ format: 'datetime',
10342
+ },
10343
+ actor: {
10344
+ type: 'string',
10345
+ format: 'did',
10346
+ },
10347
+ },
10348
+ },
10349
+ activitySubject: {
10350
+ type: 'object',
10351
+ description: 'The hydrated content an activity targets. For activities that create content, such as publishing an article, the subject is the created record itself.',
10352
+ required: ['ref', 'view'],
10353
+ properties: {
10354
+ ref: {
10355
+ type: 'ref',
10356
+ ref: 'lex:com.atproto.repo.strongRef',
10357
+ description: 'The record backing the view. Ex: the site.standard.document of an article.',
10358
+ },
10359
+ view: {
10360
+ type: 'union',
10361
+ refs: [
10362
+ 'lex:app.bsky.embed.external#viewArticle',
10363
+ 'lex:app.bsky.embed.external#viewArticlePublication',
10364
+ 'lex:app.bsky.embed.external#viewGallery',
10365
+ 'lex:app.bsky.embed.external#viewLivestream',
10366
+ ],
10367
+ },
10368
+ bskyPostRef: {
10369
+ type: 'ref',
10370
+ ref: 'lex:com.atproto.repo.strongRef',
10371
+ description: 'The Bluesky post associated with the subject, as declared by its author. The referenced post may not be available.',
10372
+ },
10373
+ bskyPostView: {
10374
+ type: 'ref',
10375
+ ref: 'lex:app.bsky.feed.defs#postView',
10376
+ description: 'The hydrated Bluesky post associated with the subject. Omitted when the post is unavailable to the viewer. May reflect a newer version of the post than the CID in bskyPostRef.',
10377
+ },
10378
+ },
10379
+ },
10380
+ activityActorGroup: {
10381
+ type: 'object',
10382
+ description: 'Activities by one actor in one collection close together in time, such as several articles published by the same author. Activities that create content with relatedActivity are never grouped. Positioned in the feed at its newest activity.',
10383
+ required: [
10384
+ 'collection',
10385
+ 'indexedAt',
10386
+ 'actor',
10387
+ 'subjects',
10388
+ 'activities',
10389
+ ],
10390
+ properties: {
10391
+ collection: {
10392
+ type: 'string',
10393
+ format: 'nsid',
10394
+ },
10395
+ indexedAt: {
10396
+ type: 'string',
10397
+ format: 'datetime',
10398
+ description: "When the group's newest activity was indexed.",
10399
+ },
10400
+ actor: {
10401
+ type: 'string',
10402
+ format: 'did',
10403
+ },
10404
+ subjects: {
10405
+ type: 'array',
10406
+ description: "Hydrated subjects of the group's activities, newest first. Currently only the newest subject is included; clients can hydrate the rest from the subject URIs in activities.",
10407
+ minLength: 1,
10408
+ items: {
10409
+ type: 'ref',
10410
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activitySubject',
10411
+ },
10412
+ },
10413
+ activities: {
10414
+ type: 'array',
10415
+ description: 'All activities in the group, newest first.',
10416
+ minLength: 2,
10417
+ items: {
10418
+ type: 'ref',
10419
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activityActorGroupItem',
10420
+ },
10421
+ },
10422
+ },
10423
+ },
10424
+ activityActorGroupItem: {
10425
+ type: 'object',
10426
+ required: ['ref', 'indexedAt', 'subject'],
10427
+ properties: {
10428
+ ref: {
10429
+ type: 'ref',
10430
+ ref: 'lex:com.atproto.repo.strongRef',
10431
+ },
10432
+ indexedAt: {
10433
+ type: 'string',
10434
+ format: 'datetime',
10435
+ },
10436
+ subject: {
10437
+ type: 'string',
10438
+ format: 'at-uri',
10439
+ description: 'The content the activity targets. Matches ref.uri for activities that create content.',
10440
+ },
10441
+ },
10442
+ },
10443
+ activitySubjectGroup: {
10444
+ type: 'object',
10445
+ description: 'Activities by at least two actors in one collection targeting the same subject, such as several recommendations of an article published on an earlier page. Positioned in the feed at its newest activity.',
10446
+ required: ['collection', 'indexedAt', 'subject', 'activities'],
10447
+ properties: {
10448
+ collection: {
10449
+ type: 'string',
10450
+ format: 'nsid',
10451
+ },
10452
+ indexedAt: {
10453
+ type: 'string',
10454
+ format: 'datetime',
10455
+ description: "When the group's newest activity was indexed.",
10456
+ },
10457
+ subject: {
10458
+ type: 'ref',
10459
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activitySubject',
10460
+ },
10461
+ activities: {
10462
+ type: 'array',
10463
+ description: 'All activities in the group, newest first.',
10464
+ minLength: 2,
10465
+ items: {
10466
+ type: 'ref',
10467
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimelineV2#activitySubjectGroupItem',
10468
+ },
10469
+ },
10470
+ },
10471
+ },
10472
+ activitySubjectGroupItem: {
10473
+ type: 'object',
10474
+ required: ['ref', 'indexedAt', 'actor'],
10475
+ properties: {
10476
+ ref: {
10477
+ type: 'ref',
10478
+ ref: 'lex:com.atproto.repo.strongRef',
10479
+ },
10480
+ indexedAt: {
10481
+ type: 'string',
10482
+ format: 'datetime',
10483
+ },
10484
+ actor: {
10485
+ type: 'string',
10486
+ format: 'did',
10487
+ },
10488
+ },
10489
+ },
10490
+ },
10491
+ },
10193
10492
  AppBskyUnspeccedGetConfig: {
10194
10493
  lexicon: 1,
10195
10494
  id: 'app.bsky.unspecced.getConfig',
@@ -30193,6 +30492,7 @@ export const ids = {
30193
30492
  AppBskyUnspeccedGetAtmosphereExploreArticleRecommendations: 'app.bsky.unspecced.getAtmosphereExploreArticleRecommendations',
30194
30493
  AppBskyUnspeccedGetAtmosphereExploreTab: 'app.bsky.unspecced.getAtmosphereExploreTab',
30195
30494
  AppBskyUnspeccedGetAtmosphereTimeline: 'app.bsky.unspecced.getAtmosphereTimeline',
30495
+ AppBskyUnspeccedGetAtmosphereTimelineV2: 'app.bsky.unspecced.getAtmosphereTimelineV2',
30196
30496
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
30197
30497
  AppBskyUnspeccedGetOnboardingSuggestedStarterPacks: 'app.bsky.unspecced.getOnboardingSuggestedStarterPacks',
30198
30498
  AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton: 'app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton',