@atproto/api 0.31.0 → 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.
Files changed (28) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/client/index.d.ts +3 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +5 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +824 -50
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +440 -26
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/external.d.ts +14 -1
  11. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/external.js +7 -0
  13. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  14. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts +4 -0
  15. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts.map +1 -1
  16. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.js.map +1 -1
  17. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +9 -2
  18. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -1
  19. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -1
  20. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.d.ts +58 -20
  21. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.d.ts.map +1 -1
  22. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.js +31 -10
  23. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.js.map +1 -1
  24. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.d.ts +115 -0
  25. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.d.ts.map +1 -0
  26. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.js +63 -0
  27. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.js.map +1 -0
  28. package/package.json +1 -1
@@ -0,0 +1,115 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import { type $Typed } from '../../../../util.js';
7
+ import type * as AppBskyActorDefs from '../actor/defs.js';
8
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
9
+ import type * as AppBskyEmbedExternal from '../embed/external.js';
10
+ import type * as AppBskyFeedDefs from '../feed/defs.js';
11
+ export type QueryParams = {
12
+ cursor?: string;
13
+ };
14
+ export type InputSchema = undefined;
15
+ export interface OutputSchema {
16
+ cursor?: string;
17
+ /** 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. */
18
+ feed: ($Typed<ActivityItem> | $Typed<ActivityActorGroup> | $Typed<ActivitySubjectGroup> | {
19
+ $type: string;
20
+ })[];
21
+ /** 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. */
22
+ relatedViews: ($Typed<AppBskyActorDefs.ProfileViewBasic> | {
23
+ $type: string;
24
+ })[];
25
+ }
26
+ export interface CallOptions {
27
+ signal?: AbortSignal;
28
+ headers?: HeadersMap;
29
+ }
30
+ export interface Response {
31
+ success: boolean;
32
+ headers: HeadersMap;
33
+ data: OutputSchema;
34
+ }
35
+ export declare function toKnownErr(e: any): any;
36
+ /** 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. */
37
+ export interface ActivityItem {
38
+ $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityItem';
39
+ ref: ComAtprotoRepoStrongRef.Main;
40
+ /** The collection of the activity record. Ex: site.standard.graph.recommend. */
41
+ collection: string;
42
+ /** When the activity was indexed. Determines the item's position in the feed, even when relatedActivity contains newer activities. */
43
+ indexedAt: string;
44
+ actor: string;
45
+ subject: ActivitySubject;
46
+ /** 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. */
47
+ relatedActivity?: ActivityItemRelatedActivity[];
48
+ }
49
+ export declare function isActivityItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimelineV2", "activityItem">;
50
+ export declare function validateActivityItem<V>(v: V): ValidationResult<ActivityItem & V>;
51
+ export interface ActivityItemRelatedActivity {
52
+ $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityItemRelatedActivity';
53
+ ref: ComAtprotoRepoStrongRef.Main;
54
+ collection: string;
55
+ indexedAt: string;
56
+ actor: string;
57
+ }
58
+ export declare function isActivityItemRelatedActivity<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimelineV2", "activityItemRelatedActivity">;
59
+ export declare function validateActivityItemRelatedActivity<V>(v: V): ValidationResult<ActivityItemRelatedActivity & V>;
60
+ /** The hydrated content an activity targets. For activities that create content, such as publishing an article, the subject is the created record itself. */
61
+ export interface ActivitySubject {
62
+ $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activitySubject';
63
+ ref: ComAtprotoRepoStrongRef.Main;
64
+ view: $Typed<AppBskyEmbedExternal.ViewArticle> | $Typed<AppBskyEmbedExternal.ViewArticlePublication> | $Typed<AppBskyEmbedExternal.ViewGallery> | $Typed<AppBskyEmbedExternal.ViewLivestream> | {
65
+ $type: string;
66
+ };
67
+ bskyPostRef?: ComAtprotoRepoStrongRef.Main;
68
+ bskyPostView?: AppBskyFeedDefs.PostView;
69
+ }
70
+ export declare function isActivitySubject<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimelineV2", "activitySubject">;
71
+ export declare function validateActivitySubject<V>(v: V): ValidationResult<ActivitySubject & V>;
72
+ /** 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. */
73
+ export interface ActivityActorGroup {
74
+ $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityActorGroup';
75
+ collection: string;
76
+ /** When the group's newest activity was indexed. */
77
+ indexedAt: string;
78
+ actor: string;
79
+ /** 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. */
80
+ subjects: ActivitySubject[];
81
+ /** All activities in the group, newest first. */
82
+ activities: ActivityActorGroupItem[];
83
+ }
84
+ export declare function isActivityActorGroup<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimelineV2", "activityActorGroup">;
85
+ export declare function validateActivityActorGroup<V>(v: V): ValidationResult<ActivityActorGroup & V>;
86
+ export interface ActivityActorGroupItem {
87
+ $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityActorGroupItem';
88
+ ref: ComAtprotoRepoStrongRef.Main;
89
+ indexedAt: string;
90
+ /** The content the activity targets. Matches ref.uri for activities that create content. */
91
+ subject: string;
92
+ }
93
+ export declare function isActivityActorGroupItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimelineV2", "activityActorGroupItem">;
94
+ export declare function validateActivityActorGroupItem<V>(v: V): ValidationResult<ActivityActorGroupItem & V>;
95
+ /** 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. */
96
+ export interface ActivitySubjectGroup {
97
+ $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activitySubjectGroup';
98
+ collection: string;
99
+ /** When the group's newest activity was indexed. */
100
+ indexedAt: string;
101
+ subject: ActivitySubject;
102
+ /** All activities in the group, newest first. */
103
+ activities: ActivitySubjectGroupItem[];
104
+ }
105
+ export declare function isActivitySubjectGroup<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimelineV2", "activitySubjectGroup">;
106
+ export declare function validateActivitySubjectGroup<V>(v: V): ValidationResult<ActivitySubjectGroup & V>;
107
+ export interface ActivitySubjectGroupItem {
108
+ $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activitySubjectGroupItem';
109
+ ref: ComAtprotoRepoStrongRef.Main;
110
+ indexedAt: string;
111
+ actor: string;
112
+ }
113
+ export declare function isActivitySubjectGroupItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimelineV2", "activitySubjectGroupItem">;
114
+ export declare function validateActivitySubjectGroupItem<V>(v: V): ValidationResult<ActivitySubjectGroupItem & V>;
115
+ //# sourceMappingURL=getAtmosphereTimelineV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAtmosphereTimelineV2.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,eAAe,MAAM,iBAAiB,CAAA;AAMvD,MAAM,MAAM,WAAW,GAAG;IACx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lobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'app.bsky.unspecced.getAtmosphereTimelineV2';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ const hashActivityItem = 'activityItem';
15
+ export function isActivityItem(v) {
16
+ return is$typed(v, id, hashActivityItem);
17
+ }
18
+ export function validateActivityItem(v) {
19
+ return validate(v, id, hashActivityItem);
20
+ }
21
+ const hashActivityItemRelatedActivity = 'activityItemRelatedActivity';
22
+ export function isActivityItemRelatedActivity(v) {
23
+ return is$typed(v, id, hashActivityItemRelatedActivity);
24
+ }
25
+ export function validateActivityItemRelatedActivity(v) {
26
+ return validate(v, id, hashActivityItemRelatedActivity);
27
+ }
28
+ const hashActivitySubject = 'activitySubject';
29
+ export function isActivitySubject(v) {
30
+ return is$typed(v, id, hashActivitySubject);
31
+ }
32
+ export function validateActivitySubject(v) {
33
+ return validate(v, id, hashActivitySubject);
34
+ }
35
+ const hashActivityActorGroup = 'activityActorGroup';
36
+ export function isActivityActorGroup(v) {
37
+ return is$typed(v, id, hashActivityActorGroup);
38
+ }
39
+ export function validateActivityActorGroup(v) {
40
+ return validate(v, id, hashActivityActorGroup);
41
+ }
42
+ const hashActivityActorGroupItem = 'activityActorGroupItem';
43
+ export function isActivityActorGroupItem(v) {
44
+ return is$typed(v, id, hashActivityActorGroupItem);
45
+ }
46
+ export function validateActivityActorGroupItem(v) {
47
+ return validate(v, id, hashActivityActorGroupItem);
48
+ }
49
+ const hashActivitySubjectGroup = 'activitySubjectGroup';
50
+ export function isActivitySubjectGroup(v) {
51
+ return is$typed(v, id, hashActivitySubjectGroup);
52
+ }
53
+ export function validateActivitySubjectGroup(v) {
54
+ return validate(v, id, hashActivitySubjectGroup);
55
+ }
56
+ const hashActivitySubjectGroupItem = 'activitySubjectGroupItem';
57
+ export function isActivitySubjectGroupItem(v) {
58
+ return is$typed(v, id, hashActivitySubjectGroupItem);
59
+ }
60
+ export function validateActivitySubjectGroupItem(v) {
61
+ return validate(v, id, hashActivitySubjectGroupItem);
62
+ }
63
+ //# sourceMappingURL=getAtmosphereTimelineV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAtmosphereTimelineV2.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAM5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4CAA4C,CAAA;AAiCvD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAgBD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AAUD,MAAM,+BAA+B,GAAG,6BAA6B,CAAA;AAErE,MAAM,UAAU,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,+BAA+B,CAAC,CAAA;AACzD,CAAC;AAED,MAAM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AC5E,CAAC;AASD,MAAM,4BAA4B,GAAG,0BAA0B,CAAA;AAE/D,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,4BAA4B,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAI,CAAI;IACtD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyFeedDefs from '../feed/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereTimelineV2'\n\nexport type QueryParams = {\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n /** 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. */\n feed: (\n | $Typed<ActivityItem>\n | $Typed<ActivityActorGroup>\n | $Typed<ActivitySubjectGroup>\n | { $type: string }\n )[]\n /** 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. */\n relatedViews: (\n $Typed<AppBskyActorDefs.ProfileViewBasic> | { $type: string }\n )[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n\n/** 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. */\nexport interface ActivityItem {\n $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityItem'\n ref: ComAtprotoRepoStrongRef.Main\n /** The collection of the activity record. Ex: site.standard.graph.recommend. */\n collection: string\n /** When the activity was indexed. Determines the item's position in the feed, even when relatedActivity contains newer activities. */\n indexedAt: string\n actor: string\n subject: ActivitySubject\n /** 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. */\n relatedActivity?: ActivityItemRelatedActivity[]\n}\n\nconst hashActivityItem = 'activityItem'\n\nexport function isActivityItem<V>(v: V) {\n return is$typed(v, id, hashActivityItem)\n}\n\nexport function validateActivityItem<V>(v: V) {\n return validate<ActivityItem & V>(v, id, hashActivityItem)\n}\n\nexport interface ActivityItemRelatedActivity {\n $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityItemRelatedActivity'\n ref: ComAtprotoRepoStrongRef.Main\n collection: string\n indexedAt: string\n actor: string\n}\n\nconst hashActivityItemRelatedActivity = 'activityItemRelatedActivity'\n\nexport function isActivityItemRelatedActivity<V>(v: V) {\n return is$typed(v, id, hashActivityItemRelatedActivity)\n}\n\nexport function validateActivityItemRelatedActivity<V>(v: V) {\n return validate<ActivityItemRelatedActivity & V>(\n v,\n id,\n hashActivityItemRelatedActivity,\n )\n}\n\n/** The hydrated content an activity targets. For activities that create content, such as publishing an article, the subject is the created record itself. */\nexport interface ActivitySubject {\n $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activitySubject'\n ref: ComAtprotoRepoStrongRef.Main\n view:\n | $Typed<AppBskyEmbedExternal.ViewArticle>\n | $Typed<AppBskyEmbedExternal.ViewArticlePublication>\n | $Typed<AppBskyEmbedExternal.ViewGallery>\n | $Typed<AppBskyEmbedExternal.ViewLivestream>\n | { $type: string }\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n bskyPostView?: AppBskyFeedDefs.PostView\n}\n\nconst hashActivitySubject = 'activitySubject'\n\nexport function isActivitySubject<V>(v: V) {\n return is$typed(v, id, hashActivitySubject)\n}\n\nexport function validateActivitySubject<V>(v: V) {\n return validate<ActivitySubject & V>(v, id, hashActivitySubject)\n}\n\n/** 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. */\nexport interface ActivityActorGroup {\n $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityActorGroup'\n collection: string\n /** When the group's newest activity was indexed. */\n indexedAt: string\n actor: string\n /** 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. */\n subjects: ActivitySubject[]\n /** All activities in the group, newest first. */\n activities: ActivityActorGroupItem[]\n}\n\nconst hashActivityActorGroup = 'activityActorGroup'\n\nexport function isActivityActorGroup<V>(v: V) {\n return is$typed(v, id, hashActivityActorGroup)\n}\n\nexport function validateActivityActorGroup<V>(v: V) {\n return validate<ActivityActorGroup & V>(v, id, hashActivityActorGroup)\n}\n\nexport interface ActivityActorGroupItem {\n $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activityActorGroupItem'\n ref: ComAtprotoRepoStrongRef.Main\n indexedAt: string\n /** The content the activity targets. Matches ref.uri for activities that create content. */\n subject: string\n}\n\nconst hashActivityActorGroupItem = 'activityActorGroupItem'\n\nexport function isActivityActorGroupItem<V>(v: V) {\n return is$typed(v, id, hashActivityActorGroupItem)\n}\n\nexport function validateActivityActorGroupItem<V>(v: V) {\n return validate<ActivityActorGroupItem & V>(v, id, hashActivityActorGroupItem)\n}\n\n/** 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. */\nexport interface ActivitySubjectGroup {\n $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activitySubjectGroup'\n collection: string\n /** When the group's newest activity was indexed. */\n indexedAt: string\n subject: ActivitySubject\n /** All activities in the group, newest first. */\n activities: ActivitySubjectGroupItem[]\n}\n\nconst hashActivitySubjectGroup = 'activitySubjectGroup'\n\nexport function isActivitySubjectGroup<V>(v: V) {\n return is$typed(v, id, hashActivitySubjectGroup)\n}\n\nexport function validateActivitySubjectGroup<V>(v: V) {\n return validate<ActivitySubjectGroup & V>(v, id, hashActivitySubjectGroup)\n}\n\nexport interface ActivitySubjectGroupItem {\n $type?: 'app.bsky.unspecced.getAtmosphereTimelineV2#activitySubjectGroupItem'\n ref: ComAtprotoRepoStrongRef.Main\n indexedAt: string\n actor: string\n}\n\nconst hashActivitySubjectGroupItem = 'activitySubjectGroupItem'\n\nexport function isActivitySubjectGroupItem<V>(v: V) {\n return is$typed(v, id, hashActivitySubjectGroupItem)\n}\n\nexport function validateActivitySubjectGroupItem<V>(v: V) {\n return validate<ActivitySubjectGroupItem & V>(\n v,\n id,\n hashActivitySubjectGroupItem,\n )\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [