@atproto/api 0.32.3 → 0.32.5
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.
- package/CHANGELOG.md +21 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +9 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +340 -58
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +183 -29
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +31 -2
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js +14 -0
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts +0 -4
- package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +0 -4
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -1
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.d.ts +59 -0
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.js +37 -0
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.js.map +1 -0
- package/package.json +7 -7
|
@@ -28,6 +28,9 @@ export declare function validateExternal<V>(v: V): ValidationResult<External & V
|
|
|
28
28
|
export interface View {
|
|
29
29
|
$type?: 'app.bsky.embed.external#view';
|
|
30
30
|
external: ViewExternal;
|
|
31
|
+
data?: $Typed<ViewArticle> | $Typed<ViewArticlePublication> | $Typed<ViewGallery> | $Typed<ViewLivestream> | {
|
|
32
|
+
$type: string;
|
|
33
|
+
};
|
|
31
34
|
}
|
|
32
35
|
export declare function isView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "view">;
|
|
33
36
|
export declare function validateView<V>(v: V): ValidationResult<View & V>;
|
|
@@ -65,7 +68,7 @@ export interface ViewExternalSource {
|
|
|
65
68
|
}
|
|
66
69
|
export declare function isViewExternalSource<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewExternalSource">;
|
|
67
70
|
export declare function validateViewExternalSource<V>(v: V): ValidationResult<ViewExternalSource & V>;
|
|
68
|
-
/** The theme colors of an external source, such as a standard.
|
|
71
|
+
/** 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. */
|
|
69
72
|
export interface ViewExternalSourceTheme {
|
|
70
73
|
$type?: 'app.bsky.embed.external#viewExternalSourceTheme';
|
|
71
74
|
backgroundRGB?: ColorRGB;
|
|
@@ -86,6 +89,8 @@ export declare function isColorRGB<V>(v: V): v is import("../../../../util.js").
|
|
|
86
89
|
export declare function validateColorRGB<V>(v: V): ValidationResult<ColorRGB & V>;
|
|
87
90
|
export interface ViewArticle {
|
|
88
91
|
$type?: 'app.bsky.embed.external#viewArticle';
|
|
92
|
+
/** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */
|
|
93
|
+
providerId?: string;
|
|
89
94
|
uri: string;
|
|
90
95
|
title: string;
|
|
91
96
|
description: string;
|
|
@@ -97,14 +102,25 @@ export interface ViewArticle {
|
|
|
97
102
|
image?: string;
|
|
98
103
|
publisher?: ViewArticlePublication;
|
|
99
104
|
readingTime?: number;
|
|
105
|
+
viewer?: ViewArticleViewerState;
|
|
100
106
|
likeCount?: number;
|
|
101
107
|
/** Available profile previews. Selected deterministically by DID; not a ranking. */
|
|
102
108
|
likers?: AppBskyActorDefs.ProfileViewBasic[];
|
|
103
109
|
}
|
|
104
110
|
export declare function isViewArticle<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticle">;
|
|
105
111
|
export declare function validateViewArticle<V>(v: V): ValidationResult<ViewArticle & V>;
|
|
112
|
+
/** Metadata about the requesting account's relationship with the subject article. Only has meaningful content for authed requests. */
|
|
113
|
+
export interface ViewArticleViewerState {
|
|
114
|
+
$type?: 'app.bsky.embed.external#viewArticleViewerState';
|
|
115
|
+
/** The requesting account's site.standard.graph.recommend record for this article, if recommended. */
|
|
116
|
+
like?: string;
|
|
117
|
+
}
|
|
118
|
+
export declare function isViewArticleViewerState<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticleViewerState">;
|
|
119
|
+
export declare function validateViewArticleViewerState<V>(v: V): ValidationResult<ViewArticleViewerState & V>;
|
|
106
120
|
export interface ViewArticlePublication {
|
|
107
121
|
$type?: 'app.bsky.embed.external#viewArticlePublication';
|
|
122
|
+
/** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */
|
|
123
|
+
providerId?: string;
|
|
108
124
|
uri: string;
|
|
109
125
|
title: string;
|
|
110
126
|
description: string;
|
|
@@ -116,10 +132,10 @@ export interface ViewArticlePublication {
|
|
|
116
132
|
logo?: string;
|
|
117
133
|
image?: string;
|
|
118
134
|
theme?: ViewArticlePublicationTheme;
|
|
135
|
+
viewer?: ViewArticlePublicationViewerState;
|
|
119
136
|
subscriptionCount?: number;
|
|
120
137
|
/** Available profile previews. Selected deterministically by DID; not a ranking. */
|
|
121
138
|
subscribers?: AppBskyActorDefs.ProfileViewBasic[];
|
|
122
|
-
viewer?: ViewArticlePublicationViewerState;
|
|
123
139
|
}
|
|
124
140
|
export declare function isViewArticlePublication<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticlePublication">;
|
|
125
141
|
export declare function validateViewArticlePublication<V>(v: V): ValidationResult<ViewArticlePublication & V>;
|
|
@@ -146,6 +162,8 @@ export declare function isViewArticlePublicationTheme<V>(v: V): v is import("../
|
|
|
146
162
|
export declare function validateViewArticlePublicationTheme<V>(v: V): ValidationResult<ViewArticlePublicationTheme & V>;
|
|
147
163
|
export interface ViewGallery {
|
|
148
164
|
$type?: 'app.bsky.embed.external#viewGallery';
|
|
165
|
+
/** Best-effort provider domain for cosmetic attribution, such as grain.social. Not verified provenance. */
|
|
166
|
+
providerId?: string;
|
|
149
167
|
uri: string;
|
|
150
168
|
title: string;
|
|
151
169
|
description: string;
|
|
@@ -160,12 +178,21 @@ export interface ViewGallery {
|
|
|
160
178
|
})[];
|
|
161
179
|
/** Total number of gallery item backlinks, independent of the items included in this view. */
|
|
162
180
|
photoCount?: number;
|
|
181
|
+
viewer?: ViewGalleryViewerState;
|
|
163
182
|
likeCount?: number;
|
|
164
183
|
/** Available profile previews. Selected deterministically by DID; not a ranking. */
|
|
165
184
|
likers?: AppBskyActorDefs.ProfileViewBasic[];
|
|
166
185
|
}
|
|
167
186
|
export declare function isViewGallery<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewGallery">;
|
|
168
187
|
export declare function validateViewGallery<V>(v: V): ValidationResult<ViewGallery & V>;
|
|
188
|
+
/** Metadata about the requesting account's relationship with the subject gallery. Only has meaningful content for authed requests. */
|
|
189
|
+
export interface ViewGalleryViewerState {
|
|
190
|
+
$type?: 'app.bsky.embed.external#viewGalleryViewerState';
|
|
191
|
+
/** The requesting account's social.grain.favorite record for this gallery, if favorited. */
|
|
192
|
+
like?: string;
|
|
193
|
+
}
|
|
194
|
+
export declare function isViewGalleryViewerState<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewGalleryViewerState">;
|
|
195
|
+
export declare function validateViewGalleryViewerState<V>(v: V): ValidationResult<ViewGalleryViewerState & V>;
|
|
169
196
|
export interface ViewGalleryImage {
|
|
170
197
|
$type?: 'app.bsky.embed.external#viewGalleryImage';
|
|
171
198
|
/** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */
|
|
@@ -180,6 +207,8 @@ export declare function isViewGalleryImage<V>(v: V): v is import("../../../../ut
|
|
|
180
207
|
export declare function validateViewGalleryImage<V>(v: V): ValidationResult<ViewGalleryImage & V>;
|
|
181
208
|
export interface ViewLivestream {
|
|
182
209
|
$type?: 'app.bsky.embed.external#viewLivestream';
|
|
210
|
+
/** Best-effort provider domain for cosmetic attribution, such as stream.place. Not verified provenance. */
|
|
211
|
+
providerId?: string;
|
|
183
212
|
uri: string;
|
|
184
213
|
title: string;
|
|
185
214
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,4HAA4H;AAC5H,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,4EAA4E;IAC5E,cAAc,CAAC,EAAE,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{
|
|
|
63
63
|
export function validateViewArticle(v) {
|
|
64
64
|
return validate(v, id, hashViewArticle);
|
|
65
65
|
}
|
|
66
|
+
const hashViewArticleViewerState = 'viewArticleViewerState';
|
|
67
|
+
export function isViewArticleViewerState(v) {
|
|
68
|
+
return is$typed(v, id, hashViewArticleViewerState);
|
|
69
|
+
}
|
|
70
|
+
export function validateViewArticleViewerState(v) {
|
|
71
|
+
return validate(v, id, hashViewArticleViewerState);
|
|
72
|
+
}
|
|
66
73
|
const hashViewArticlePublication = 'viewArticlePublication';
|
|
67
74
|
export function isViewArticlePublication(v) {
|
|
68
75
|
return is$typed(v, id, hashViewArticlePublication);
|
|
@@ -91,6 +98,13 @@ export function isViewGallery(v) {
|
|
|
91
98
|
export function validateViewGallery(v) {
|
|
92
99
|
return validate(v, id, hashViewGallery);
|
|
93
100
|
}
|
|
101
|
+
const hashViewGalleryViewerState = 'viewGalleryViewerState';
|
|
102
|
+
export function isViewGalleryViewerState(v) {
|
|
103
|
+
return is$typed(v, id, hashViewGalleryViewerState);
|
|
104
|
+
}
|
|
105
|
+
export function validateViewGalleryViewerState(v) {
|
|
106
|
+
return validate(v, id, hashViewGalleryViewerState);
|
|
107
|
+
}
|
|
94
108
|
const hashViewGalleryImage = 'viewGalleryImage';
|
|
95
109
|
export function isViewGalleryImage(v) {
|
|
96
110
|
return is$typed(v, id, hashViewGalleryImage);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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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kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as AppBskyEmbedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n /** When the external content was created, if available. Example: a publication date, for an article. */\n createdAt?: string\n /** When the external content was updated, if available. */\n updatedAt?: string\n /** Estimated reading time in minutes, if applicable and available. */\n readingTime?: number\n labels?: ComAtprotoLabelDefs.Label[]\n source?: ViewExternalSource\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n /** Profiles of the owners of the Atmosphere records that backed this view. */\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n\n/** The source of an external embed, such as a standard.site publication. */\nexport interface ViewExternalSource {\n $type?: 'app.bsky.embed.external#viewExternalSource'\n /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */\n uri: string\n /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */\n icon?: string\n title: string\n description?: string\n theme?: ViewExternalSourceTheme\n}\n\nconst hashViewExternalSource = 'viewExternalSource'\n\nexport function isViewExternalSource<V>(v: V) {\n return is$typed(v, id, hashViewExternalSource)\n}\n\nexport function validateViewExternalSource<V>(v: V) {\n return validate<ViewExternalSource & V>(v, id, hashViewExternalSource)\n}\n\n/** 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. */\nexport interface ViewExternalSourceTheme {\n $type?: 'app.bsky.embed.external#viewExternalSourceTheme'\n backgroundRGB?: ColorRGB\n foregroundRGB?: ColorRGB\n accentRGB?: ColorRGB\n accentForegroundRGB?: ColorRGB\n}\n\nconst hashViewExternalSourceTheme = 'viewExternalSourceTheme'\n\nexport function isViewExternalSourceTheme<V>(v: V) {\n return is$typed(v, id, hashViewExternalSourceTheme)\n}\n\nexport function validateViewExternalSourceTheme<V>(v: V) {\n return validate<ViewExternalSourceTheme & V>(\n v,\n id,\n hashViewExternalSourceTheme,\n )\n}\n\n/** RGB color definition, inspired by site.standard.theme.color#rgb */\nexport interface ColorRGB {\n $type?: 'app.bsky.embed.external#colorRGB'\n r: number\n g: number\n b: number\n}\n\nconst hashColorRGB = 'colorRGB'\n\nexport function isColorRGB<V>(v: V) {\n return is$typed(v, id, hashColorRGB)\n}\n\nexport function validateColorRGB<V>(v: V) {\n return validate<ColorRGB & V>(v, id, hashColorRGB)\n}\n\nexport interface ViewArticle {\n $type?: 'app.bsky.embed.external#viewArticle'\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n publisher?: ViewArticlePublication\n readingTime?: number\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewArticle = 'viewArticle'\n\nexport function isViewArticle<V>(v: V) {\n return is$typed(v, id, hashViewArticle)\n}\n\nexport function validateViewArticle<V>(v: V) {\n return validate<ViewArticle & V>(v, id, hashViewArticle)\n}\n\nexport interface ViewArticlePublication {\n $type?: 'app.bsky.embed.external#viewArticlePublication'\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n logo?: string\n image?: string\n theme?: ViewArticlePublicationTheme\n subscriptionCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n subscribers?: AppBskyActorDefs.ProfileViewBasic[]\n viewer?: ViewArticlePublicationViewerState\n}\n\nconst hashViewArticlePublication = 'viewArticlePublication'\n\nexport function isViewArticlePublication<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublication)\n}\n\nexport function validateViewArticlePublication<V>(v: V) {\n return validate<ViewArticlePublication & V>(v, id, hashViewArticlePublication)\n}\n\n/** Metadata about the requesting account's relationship with the subject publication. Only has meaningful content for authed requests. */\nexport interface ViewArticlePublicationViewerState {\n $type?: 'app.bsky.embed.external#viewArticlePublicationViewerState'\n /** The requesting account's site.standard.graph.subscription record for this publication, if subscribed. */\n subscription?: string\n}\n\nconst hashViewArticlePublicationViewerState =\n 'viewArticlePublicationViewerState'\n\nexport function isViewArticlePublicationViewerState<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationViewerState)\n}\n\nexport function validateViewArticlePublicationViewerState<V>(v: V) {\n return validate<ViewArticlePublicationViewerState & V>(\n v,\n id,\n hashViewArticlePublicationViewerState,\n )\n}\n\nexport interface ViewArticlePublicationTheme {\n $type?: 'app.bsky.embed.external#viewArticlePublicationTheme'\n /** Hex color string, if available. Example: '#ffffff'. */\n background?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n foreground?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accent?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accentForeground?: string\n}\n\nconst hashViewArticlePublicationTheme = 'viewArticlePublicationTheme'\n\nexport function isViewArticlePublicationTheme<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationTheme)\n}\n\nexport function validateViewArticlePublicationTheme<V>(v: V) {\n return validate<ViewArticlePublicationTheme & V>(\n v,\n id,\n hashViewArticlePublicationTheme,\n )\n}\n\nexport interface ViewGallery {\n $type?: 'app.bsky.embed.external#viewGallery'\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n /** The media items in the gallery. Each item may be of a different type, but all types must be supported by the client. */\n items: ($Typed<ViewGalleryImage> | { $type: string })[]\n /** Total number of gallery item backlinks, independent of the items included in this view. */\n photoCount?: number\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewGallery = 'viewGallery'\n\nexport function isViewGallery<V>(v: V) {\n return is$typed(v, id, hashViewGallery)\n}\n\nexport function validateViewGallery<V>(v: V) {\n return validate<ViewGallery & V>(v, id, hashViewGallery)\n}\n\nexport interface ViewGalleryImage {\n $type?: 'app.bsky.embed.external#viewGalleryImage'\n /** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */\n thumbnail: string\n /** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */\n fullsize: string\n /** Alt text description of the image, for accessibility. */\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\n}\n\nconst hashViewGalleryImage = 'viewGalleryImage'\n\nexport function isViewGalleryImage<V>(v: V) {\n return is$typed(v, id, hashViewGalleryImage)\n}\n\nexport function validateViewGalleryImage<V>(v: V) {\n return validate<ViewGalleryImage & V>(v, id, hashViewGalleryImage)\n}\n\nexport interface ViewLivestream {\n $type?: 'app.bsky.embed.external#viewLivestream'\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n /** True if the livestream is currently active at the time this view is served, false if it has ended. */\n active: boolean\n startedAt?: string\n endedAt?: string\n /** 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. */\n lastSeenAt?: string\n}\n\nconst hashViewLivestream = 'viewLivestream'\n\nexport function isViewLivestream<V>(v: V) {\n return is$typed(v, id, hashViewLivestream)\n}\n\nexport function validateViewLivestream<V>(v: V) {\n return validate<ViewLivestream & V>(v, id, hashViewLivestream)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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,yBAAyB,CAAA;AAQpC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAYD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,MAAM,UAAU,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC;AAaD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM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EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as AppBskyEmbedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n data?:\n | $Typed<ViewArticle>\n | $Typed<ViewArticlePublication>\n | $Typed<ViewGallery>\n | $Typed<ViewLivestream>\n | { $type: string }\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n /** When the external content was created, if available. Example: a publication date, for an article. */\n createdAt?: string\n /** When the external content was updated, if available. */\n updatedAt?: string\n /** Estimated reading time in minutes, if applicable and available. */\n readingTime?: number\n labels?: ComAtprotoLabelDefs.Label[]\n source?: ViewExternalSource\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n /** Profiles of the owners of the Atmosphere records that backed this view. */\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n\n/** The source of an external embed, such as a standard.site publication. */\nexport interface ViewExternalSource {\n $type?: 'app.bsky.embed.external#viewExternalSource'\n /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */\n uri: string\n /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */\n icon?: string\n title: string\n description?: string\n theme?: ViewExternalSourceTheme\n}\n\nconst hashViewExternalSource = 'viewExternalSource'\n\nexport function isViewExternalSource<V>(v: V) {\n return is$typed(v, id, hashViewExternalSource)\n}\n\nexport function validateViewExternalSource<V>(v: V) {\n return validate<ViewExternalSource & V>(v, id, hashViewExternalSource)\n}\n\n/** 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. */\nexport interface ViewExternalSourceTheme {\n $type?: 'app.bsky.embed.external#viewExternalSourceTheme'\n backgroundRGB?: ColorRGB\n foregroundRGB?: ColorRGB\n accentRGB?: ColorRGB\n accentForegroundRGB?: ColorRGB\n}\n\nconst hashViewExternalSourceTheme = 'viewExternalSourceTheme'\n\nexport function isViewExternalSourceTheme<V>(v: V) {\n return is$typed(v, id, hashViewExternalSourceTheme)\n}\n\nexport function validateViewExternalSourceTheme<V>(v: V) {\n return validate<ViewExternalSourceTheme & V>(\n v,\n id,\n hashViewExternalSourceTheme,\n )\n}\n\n/** RGB color definition, inspired by site.standard.theme.color#rgb */\nexport interface ColorRGB {\n $type?: 'app.bsky.embed.external#colorRGB'\n r: number\n g: number\n b: number\n}\n\nconst hashColorRGB = 'colorRGB'\n\nexport function isColorRGB<V>(v: V) {\n return is$typed(v, id, hashColorRGB)\n}\n\nexport function validateColorRGB<V>(v: V) {\n return validate<ColorRGB & V>(v, id, hashColorRGB)\n}\n\nexport interface ViewArticle {\n $type?: 'app.bsky.embed.external#viewArticle'\n /** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n publisher?: ViewArticlePublication\n readingTime?: number\n viewer?: ViewArticleViewerState\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewArticle = 'viewArticle'\n\nexport function isViewArticle<V>(v: V) {\n return is$typed(v, id, hashViewArticle)\n}\n\nexport function validateViewArticle<V>(v: V) {\n return validate<ViewArticle & V>(v, id, hashViewArticle)\n}\n\n/** Metadata about the requesting account's relationship with the subject article. Only has meaningful content for authed requests. */\nexport interface ViewArticleViewerState {\n $type?: 'app.bsky.embed.external#viewArticleViewerState'\n /** The requesting account's site.standard.graph.recommend record for this article, if recommended. */\n like?: string\n}\n\nconst hashViewArticleViewerState = 'viewArticleViewerState'\n\nexport function isViewArticleViewerState<V>(v: V) {\n return is$typed(v, id, hashViewArticleViewerState)\n}\n\nexport function validateViewArticleViewerState<V>(v: V) {\n return validate<ViewArticleViewerState & V>(v, id, hashViewArticleViewerState)\n}\n\nexport interface ViewArticlePublication {\n $type?: 'app.bsky.embed.external#viewArticlePublication'\n /** Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n logo?: string\n image?: string\n theme?: ViewArticlePublicationTheme\n viewer?: ViewArticlePublicationViewerState\n subscriptionCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n subscribers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewArticlePublication = 'viewArticlePublication'\n\nexport function isViewArticlePublication<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublication)\n}\n\nexport function validateViewArticlePublication<V>(v: V) {\n return validate<ViewArticlePublication & V>(v, id, hashViewArticlePublication)\n}\n\n/** Metadata about the requesting account's relationship with the subject publication. Only has meaningful content for authed requests. */\nexport interface ViewArticlePublicationViewerState {\n $type?: 'app.bsky.embed.external#viewArticlePublicationViewerState'\n /** The requesting account's site.standard.graph.subscription record for this publication, if subscribed. */\n subscription?: string\n}\n\nconst hashViewArticlePublicationViewerState =\n 'viewArticlePublicationViewerState'\n\nexport function isViewArticlePublicationViewerState<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationViewerState)\n}\n\nexport function validateViewArticlePublicationViewerState<V>(v: V) {\n return validate<ViewArticlePublicationViewerState & V>(\n v,\n id,\n hashViewArticlePublicationViewerState,\n )\n}\n\nexport interface ViewArticlePublicationTheme {\n $type?: 'app.bsky.embed.external#viewArticlePublicationTheme'\n /** Hex color string, if available. Example: '#ffffff'. */\n background?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n foreground?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accent?: string\n /** Hex color string, if available. Example: '#ffffff'. */\n accentForeground?: string\n}\n\nconst hashViewArticlePublicationTheme = 'viewArticlePublicationTheme'\n\nexport function isViewArticlePublicationTheme<V>(v: V) {\n return is$typed(v, id, hashViewArticlePublicationTheme)\n}\n\nexport function validateViewArticlePublicationTheme<V>(v: V) {\n return validate<ViewArticlePublicationTheme & V>(\n v,\n id,\n hashViewArticlePublicationTheme,\n )\n}\n\nexport interface ViewGallery {\n $type?: 'app.bsky.embed.external#viewGallery'\n /** Best-effort provider domain for cosmetic attribution, such as grain.social. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n /** The media items in the gallery. Each item may be of a different type, but all types must be supported by the client. */\n items: ($Typed<ViewGalleryImage> | { $type: string })[]\n /** Total number of gallery item backlinks, independent of the items included in this view. */\n photoCount?: number\n viewer?: ViewGalleryViewerState\n likeCount?: number\n /** Available profile previews. Selected deterministically by DID; not a ranking. */\n likers?: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashViewGallery = 'viewGallery'\n\nexport function isViewGallery<V>(v: V) {\n return is$typed(v, id, hashViewGallery)\n}\n\nexport function validateViewGallery<V>(v: V) {\n return validate<ViewGallery & V>(v, id, hashViewGallery)\n}\n\n/** Metadata about the requesting account's relationship with the subject gallery. Only has meaningful content for authed requests. */\nexport interface ViewGalleryViewerState {\n $type?: 'app.bsky.embed.external#viewGalleryViewerState'\n /** The requesting account's social.grain.favorite record for this gallery, if favorited. */\n like?: string\n}\n\nconst hashViewGalleryViewerState = 'viewGalleryViewerState'\n\nexport function isViewGalleryViewerState<V>(v: V) {\n return is$typed(v, id, hashViewGalleryViewerState)\n}\n\nexport function validateViewGalleryViewerState<V>(v: V) {\n return validate<ViewGalleryViewerState & V>(v, id, hashViewGalleryViewerState)\n}\n\nexport interface ViewGalleryImage {\n $type?: 'app.bsky.embed.external#viewGalleryImage'\n /** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */\n thumbnail: string\n /** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */\n fullsize: string\n /** Alt text description of the image, for accessibility. */\n alt?: string\n aspectRatio?: AppBskyEmbedDefs.AspectRatio\n}\n\nconst hashViewGalleryImage = 'viewGalleryImage'\n\nexport function isViewGalleryImage<V>(v: V) {\n return is$typed(v, id, hashViewGalleryImage)\n}\n\nexport function validateViewGalleryImage<V>(v: V) {\n return validate<ViewGalleryImage & V>(v, id, hashViewGalleryImage)\n}\n\nexport interface ViewLivestream {\n $type?: 'app.bsky.embed.external#viewLivestream'\n /** Best-effort provider domain for cosmetic attribution, such as stream.place. Not verified provenance. */\n providerId?: string\n uri: string\n title: string\n description: string\n createdAt?: string\n updatedAt?: string\n labels?: ComAtprotoLabelDefs.Label[]\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[]\n image?: string\n /** True if the livestream is currently active at the time this view is served, false if it has ended. */\n active: boolean\n startedAt?: string\n endedAt?: string\n /** 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. */\n lastSeenAt?: string\n}\n\nconst hashViewLivestream = 'viewLivestream'\n\nexport function isViewLivestream<V>(v: V) {\n return is$typed(v, id, hashViewLivestream)\n}\n\nexport function validateViewLivestream<V>(v: V) {\n return validate<ViewLivestream & V>(v, id, hashViewLivestream)\n}\n"]}
|
|
@@ -32,10 +32,6 @@ export interface AppCard {
|
|
|
32
32
|
/** The app's banner, using its account banner when available. */
|
|
33
33
|
banner?: string;
|
|
34
34
|
url?: string;
|
|
35
|
-
/** Optional link to the app on the Apple App Store. */
|
|
36
|
-
appStoreUrl?: string;
|
|
37
|
-
/** Optional link to the app on Google Play. */
|
|
38
|
-
googlePlayUrl?: string;
|
|
39
35
|
category?: string;
|
|
40
36
|
profile?: AppBskyActorDefs.ProfileViewDetailed;
|
|
41
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAtmosphereApps.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereApps.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB;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,OAAO;IACtB,KAAK,CAAC,EAAE,8CAA8C,CAAA;IACtD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,
|
|
1
|
+
{"version":3,"file":"getAtmosphereApps.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereApps.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAA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sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereApps.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;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AAuBjD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;
|
|
1
|
+
{"version":3,"file":"getAtmosphereApps.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereApps.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;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AAuBjD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAgBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereApps'\n\nexport type QueryParams = {\n /** Only return apps with this category (exact match). Omit to return all apps. */\n category?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n apps: AppCard[]\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\nexport interface AppCard {\n $type?: 'app.bsky.unspecced.getAtmosphereApps#appCard'\n id?: string\n title?: string\n description?: string\n /** The app's logo, using its account avatar when available. */\n logo?: string\n /** The app's banner, using its account banner when available. */\n banner?: string\n url?: string\n category?: string\n profile?: AppBskyActorDefs.ProfileViewDetailed\n}\n\nconst hashAppCard = 'appCard'\n\nexport function isAppCard<V>(v: V) {\n return is$typed(v, id, hashAppCard)\n}\n\nexport function validateAppCard<V>(v: V) {\n return validate<AppCard & V>(v, id, hashAppCard)\n}\n"]}
|
|
@@ -124,10 +124,6 @@ export interface AppCard {
|
|
|
124
124
|
/** Deprecated. Retained for compatibility. */
|
|
125
125
|
textColor?: string;
|
|
126
126
|
url?: string;
|
|
127
|
-
/** Optional link to the app on the Apple App Store. */
|
|
128
|
-
appStoreUrl?: string;
|
|
129
|
-
/** Optional link to the app on Google Play. */
|
|
130
|
-
googlePlayUrl?: string;
|
|
131
127
|
category?: string;
|
|
132
128
|
profile?: AppBskyActorDefs.ProfileViewDetailed;
|
|
133
129
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAtmosphereExploreTab.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,eAAe,MAAM,iBAAiB,CAAA;AACvD,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,+IAA+I;IAC/I,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,QAAQ,EAAE,WAAW,CAAA;IACrB,YAAY,EAAE,eAAe,CAAA;IAC7B,MAAM,EAAE,WAAW,CAAA;IACnB,WAAW,EAAE,cAAc,CAAA;IAC3B,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB;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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AC,EAAE,CAAC,EAAE,CAAC,sHAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,+DAA+D,CAAA;IACvE,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAID,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,oDAAoD,CAAA;IAC5D,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,
|
|
1
|
+
{"version":3,"file":"getAtmosphereExploreTab.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,K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wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,oDAAoD,CAAA;IAC5D,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAA;CAC/C;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+GAEhC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iCAEtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAtmosphereExploreTab.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.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,E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C,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAwBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as AppBskyFeedDefs from '../feed/defs.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereExploreTab'\n\nexport type QueryParams = {\n /** Preferred languages for article and photo gallery recommendations when their algorithmic recommendations are enabled. Ignored otherwise. */\n langs?: string[]\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n announcementBanner?: AnnouncementBanner\n articles: ArticleList\n publications: PublicationList\n photos: GalleryList\n livestreams: LivestreamList\n apps: AppCard[]\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\nexport interface ArticleList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleList'\n items: ArticleItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashArticleList = 'articleList'\n\nexport function isArticleList<V>(v: V) {\n return is$typed(v, id, hashArticleList)\n}\n\nexport function validateArticleList<V>(v: V) {\n return validate<ArticleList & V>(v, id, hashArticleList)\n}\n\nexport interface PublicationList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationList'\n items: PublicationItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashPublicationList = 'publicationList'\n\nexport function isPublicationList<V>(v: V) {\n return is$typed(v, id, hashPublicationList)\n}\n\nexport function validatePublicationList<V>(v: V) {\n return validate<PublicationList & V>(v, id, hashPublicationList)\n}\n\nexport interface GalleryList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryList'\n items: GalleryItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashGalleryList = 'galleryList'\n\nexport function isGalleryList<V>(v: V) {\n return is$typed(v, id, hashGalleryList)\n}\n\nexport function validateGalleryList<V>(v: V) {\n return validate<GalleryList & V>(v, id, hashGalleryList)\n}\n\nexport interface LivestreamList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamList'\n items: LivestreamItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashLivestreamList = 'livestreamList'\n\nexport function isLivestreamList<V>(v: V) {\n return is$typed(v, id, hashLivestreamList)\n}\n\nexport function validateLivestreamList<V>(v: V) {\n return validate<LivestreamList & V>(v, id, hashLivestreamList)\n}\n\nexport interface ArticleItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n viewBskyPost?: AppBskyFeedDefs.PostView\n view: AppBskyEmbedExternal.ViewArticle\n}\n\nconst hashArticleItem = 'articleItem'\n\nexport function isArticleItem<V>(v: V) {\n return is$typed(v, id, hashArticleItem)\n}\n\nexport function validateArticleItem<V>(v: V) {\n return validate<ArticleItem & V>(v, id, hashArticleItem)\n}\n\nexport interface PublicationItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewArticlePublication\n}\n\nconst hashPublicationItem = 'publicationItem'\n\nexport function isPublicationItem<V>(v: V) {\n return is$typed(v, id, hashPublicationItem)\n}\n\nexport function validatePublicationItem<V>(v: V) {\n return validate<PublicationItem & V>(v, id, hashPublicationItem)\n}\n\nexport interface GalleryItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewGallery\n}\n\nconst hashGalleryItem = 'galleryItem'\n\nexport function isGalleryItem<V>(v: V) {\n return is$typed(v, id, hashGalleryItem)\n}\n\nexport function validateGalleryItem<V>(v: V) {\n return validate<GalleryItem & V>(v, id, hashGalleryItem)\n}\n\nexport interface LivestreamItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n viewBskyPost?: AppBskyFeedDefs.PostView\n view: AppBskyEmbedExternal.ViewLivestream\n}\n\nconst hashLivestreamItem = 'livestreamItem'\n\nexport function isLivestreamItem<V>(v: V) {\n return is$typed(v, id, hashLivestreamItem)\n}\n\nexport function validateLivestreamItem<V>(v: V) {\n return validate<LivestreamItem & V>(v, id, hashLivestreamItem)\n}\n\nexport interface AnnouncementBanner {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#announcementBanner'\n id?: string\n title?: string\n description?: string\n url?: string\n image?: string\n overlayColor?: string\n textColor?: string\n}\n\nconst hashAnnouncementBanner = 'announcementBanner'\n\nexport function isAnnouncementBanner<V>(v: V) {\n return is$typed(v, id, hashAnnouncementBanner)\n}\n\nexport function validateAnnouncementBanner<V>(v: V) {\n return validate<AnnouncementBanner & V>(v, id, hashAnnouncementBanner)\n}\n\nexport interface AppCard {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#appCard'\n id?: string\n title?: string\n description?: string\n /** The profile avatar when available, otherwise the editorial logo. */\n logo?: string\n /** The profile banner when available, otherwise the editorial background image. */\n backgroundImage?: string\n /** Deprecated. Retained for compatibility. */\n overlayColor?: string\n /** Deprecated. Retained for compatibility. */\n textColor?: string\n url?: string\n /** Optional link to the app on the Apple App Store. */\n appStoreUrl?: string\n /** Optional link to the app on Google Play. */\n googlePlayUrl?: string\n category?: string\n profile?: AppBskyActorDefs.ProfileViewDetailed\n}\n\nconst hashAppCard = 'appCard'\n\nexport function isAppCard<V>(v: V) {\n return is$typed(v, id, hashAppCard)\n}\n\nexport function validateAppCard<V>(v: V) {\n return validate<AppCard & V>(v, id, hashAppCard)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"getAtmosphereExploreTab.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.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,Q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C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAoBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as AppBskyFeedDefs from '../feed/defs.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereExploreTab'\n\nexport type QueryParams = {\n /** Preferred languages for article and photo gallery recommendations when their algorithmic recommendations are enabled. Ignored otherwise. */\n langs?: string[]\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n announcementBanner?: AnnouncementBanner\n articles: ArticleList\n publications: PublicationList\n photos: GalleryList\n livestreams: LivestreamList\n apps: AppCard[]\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\nexport interface ArticleList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleList'\n items: ArticleItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashArticleList = 'articleList'\n\nexport function isArticleList<V>(v: V) {\n return is$typed(v, id, hashArticleList)\n}\n\nexport function validateArticleList<V>(v: V) {\n return validate<ArticleList & V>(v, id, hashArticleList)\n}\n\nexport interface PublicationList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationList'\n items: PublicationItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashPublicationList = 'publicationList'\n\nexport function isPublicationList<V>(v: V) {\n return is$typed(v, id, hashPublicationList)\n}\n\nexport function validatePublicationList<V>(v: V) {\n return validate<PublicationList & V>(v, id, hashPublicationList)\n}\n\nexport interface GalleryList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryList'\n items: GalleryItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashGalleryList = 'galleryList'\n\nexport function isGalleryList<V>(v: V) {\n return is$typed(v, id, hashGalleryList)\n}\n\nexport function validateGalleryList<V>(v: V) {\n return validate<GalleryList & V>(v, id, hashGalleryList)\n}\n\nexport interface LivestreamList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamList'\n items: LivestreamItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashLivestreamList = 'livestreamList'\n\nexport function isLivestreamList<V>(v: V) {\n return is$typed(v, id, hashLivestreamList)\n}\n\nexport function validateLivestreamList<V>(v: V) {\n return validate<LivestreamList & V>(v, id, hashLivestreamList)\n}\n\nexport interface ArticleItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n viewBskyPost?: AppBskyFeedDefs.PostView\n view: AppBskyEmbedExternal.ViewArticle\n}\n\nconst hashArticleItem = 'articleItem'\n\nexport function isArticleItem<V>(v: V) {\n return is$typed(v, id, hashArticleItem)\n}\n\nexport function validateArticleItem<V>(v: V) {\n return validate<ArticleItem & V>(v, id, hashArticleItem)\n}\n\nexport interface PublicationItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewArticlePublication\n}\n\nconst hashPublicationItem = 'publicationItem'\n\nexport function isPublicationItem<V>(v: V) {\n return is$typed(v, id, hashPublicationItem)\n}\n\nexport function validatePublicationItem<V>(v: V) {\n return validate<PublicationItem & V>(v, id, hashPublicationItem)\n}\n\nexport interface GalleryItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewGallery\n}\n\nconst hashGalleryItem = 'galleryItem'\n\nexport function isGalleryItem<V>(v: V) {\n return is$typed(v, id, hashGalleryItem)\n}\n\nexport function validateGalleryItem<V>(v: V) {\n return validate<GalleryItem & V>(v, id, hashGalleryItem)\n}\n\nexport interface LivestreamItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n viewBskyPost?: AppBskyFeedDefs.PostView\n view: AppBskyEmbedExternal.ViewLivestream\n}\n\nconst hashLivestreamItem = 'livestreamItem'\n\nexport function isLivestreamItem<V>(v: V) {\n return is$typed(v, id, hashLivestreamItem)\n}\n\nexport function validateLivestreamItem<V>(v: V) {\n return validate<LivestreamItem & V>(v, id, hashLivestreamItem)\n}\n\nexport interface AnnouncementBanner {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#announcementBanner'\n id?: string\n title?: string\n description?: string\n url?: string\n image?: string\n overlayColor?: string\n textColor?: string\n}\n\nconst hashAnnouncementBanner = 'announcementBanner'\n\nexport function isAnnouncementBanner<V>(v: V) {\n return is$typed(v, id, hashAnnouncementBanner)\n}\n\nexport function validateAnnouncementBanner<V>(v: V) {\n return validate<AnnouncementBanner & V>(v, id, hashAnnouncementBanner)\n}\n\nexport interface AppCard {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#appCard'\n id?: string\n title?: string\n description?: string\n /** The profile avatar when available, otherwise the editorial logo. */\n logo?: string\n /** The profile banner when available, otherwise the editorial background image. */\n backgroundImage?: string\n /** Deprecated. Retained for compatibility. */\n overlayColor?: string\n /** Deprecated. Retained for compatibility. */\n textColor?: string\n url?: string\n category?: string\n profile?: AppBskyActorDefs.ProfileViewDetailed\n}\n\nconst hashAppCard = 'appCard'\n\nexport function isAppCard<V>(v: V) {\n return is$typed(v, id, hashAppCard)\n}\n\nexport function validateAppCard<V>(v: V) {\n return validate<AppCard & V>(v, id, hashAppCard)\n}\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
/** Queue stat group. Use -1 for unqueued reports; otherwise use a positive queue ID. Requires queue access. */
|
|
8
|
+
queueId?: number;
|
|
9
|
+
/** Moderator stat group, based on current report assignment. Requires administrator access. */
|
|
10
|
+
moderatorDid?: string;
|
|
11
|
+
/** Report-type stat group. Counts only the specified reasons. */
|
|
12
|
+
reportTypes?: string[];
|
|
13
|
+
/** First UTC calendar day to include, inclusive. Defaults to today. The range must not exceed 120 calendar days. */
|
|
14
|
+
startDate?: string;
|
|
15
|
+
/** Last UTC calendar day to include, inclusive. Defaults to today. */
|
|
16
|
+
endDate?: string;
|
|
17
|
+
};
|
|
18
|
+
export type InputSchema = undefined;
|
|
19
|
+
export interface OutputSchema {
|
|
20
|
+
/** When the live query started. */
|
|
21
|
+
computedAt: string;
|
|
22
|
+
/** First included UTC calendar day, at midnight. */
|
|
23
|
+
startDate: string;
|
|
24
|
+
/** Last included UTC calendar day, at midnight. */
|
|
25
|
+
endDate: string;
|
|
26
|
+
reportTypeBreakdown: ReportTypeBreakdown;
|
|
27
|
+
}
|
|
28
|
+
export interface CallOptions {
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
headers?: HeadersMap;
|
|
31
|
+
}
|
|
32
|
+
export interface Response {
|
|
33
|
+
success: boolean;
|
|
34
|
+
headers: HeadersMap;
|
|
35
|
+
data: OutputSchema;
|
|
36
|
+
}
|
|
37
|
+
export declare class QueueNotFoundError extends XRPCError {
|
|
38
|
+
constructor(src: XRPCError);
|
|
39
|
+
}
|
|
40
|
+
export declare function toKnownErr(e: any): any;
|
|
41
|
+
export interface ReportTypeStats {
|
|
42
|
+
$type?: 'tools.ozone.report.getStatGroupDetails#reportTypeStats';
|
|
43
|
+
/** Fully qualified report reason. */
|
|
44
|
+
reportType: string;
|
|
45
|
+
/** Unmuted reports received during the requested UTC calendar days. */
|
|
46
|
+
inboundCount: number;
|
|
47
|
+
}
|
|
48
|
+
export declare function isReportTypeStats<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.report.getStatGroupDetails", "reportTypeStats">;
|
|
49
|
+
export declare function validateReportTypeStats<V>(v: V): ValidationResult<ReportTypeStats & V>;
|
|
50
|
+
/** Unmuted inbound reports by actual reason, across all statuses, within the selected stat group and UTC date range. */
|
|
51
|
+
export interface ReportTypeBreakdown {
|
|
52
|
+
$type?: 'tools.ozone.report.getStatGroupDetails#reportTypeBreakdown';
|
|
53
|
+
/** Total unmuted inbound reports in this breakdown. */
|
|
54
|
+
totalCount: number;
|
|
55
|
+
stats: ReportTypeStats[];
|
|
56
|
+
}
|
|
57
|
+
export declare function isReportTypeBreakdown<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.report.getStatGroupDetails", "reportTypeBreakdown">;
|
|
58
|
+
export declare function validateReportTypeBreakdown<V>(v: V): ValidationResult<ReportTypeBreakdown & V>;
|
|
59
|
+
//# sourceMappingURL=getStatGroupDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatGroupDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getStatGroupDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,MAAM,WAAW,GAAG;IACxB,+GAA+G;IAC/G,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,oHAAoH;IACpH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB,EAAE,mBAAmB,CAAA;CACzC;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,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,wDAAwD,CAAA;IAChE,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,uEAAuE;IACvE,YAAY,EAAE,MAAM,CAAA;CACrB;AAID,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mHAExC;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yCAE9C;AAED,wHAAwH;AACxH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,4DAA4D,CAAA;IACpE,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,eAAe,EAAE,CAAA;CACzB;AAID,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uHAE5C;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6CAElD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } 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 = 'tools.ozone.report.getStatGroupDetails';
|
|
11
|
+
export class QueueNotFoundError extends XRPCError {
|
|
12
|
+
constructor(src) {
|
|
13
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function toKnownErr(e) {
|
|
17
|
+
if (e instanceof XRPCError) {
|
|
18
|
+
if (e.error === 'QueueNotFound')
|
|
19
|
+
return new QueueNotFoundError(e);
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
const hashReportTypeStats = 'reportTypeStats';
|
|
24
|
+
export function isReportTypeStats(v) {
|
|
25
|
+
return is$typed(v, id, hashReportTypeStats);
|
|
26
|
+
}
|
|
27
|
+
export function validateReportTypeStats(v) {
|
|
28
|
+
return validate(v, id, hashReportTypeStats);
|
|
29
|
+
}
|
|
30
|
+
const hashReportTypeBreakdown = 'reportTypeBreakdown';
|
|
31
|
+
export function isReportTypeBreakdown(v) {
|
|
32
|
+
return is$typed(v, id, hashReportTypeBreakdown);
|
|
33
|
+
}
|
|
34
|
+
export function validateReportTypeBreakdown(v) {
|
|
35
|
+
return validate(v, id, hashReportTypeBreakdown);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=getStatGroupDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatGroupDetails.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getStatGroupDetails.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;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wCAAwC,CAAA;AAqCnD,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAUD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAUD,MAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAErD,MAAM,UAAU,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AACjD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AAC1E,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.getStatGroupDetails'\n\nexport type QueryParams = {\n /** Queue stat group. Use -1 for unqueued reports; otherwise use a positive queue ID. Requires queue access. */\n queueId?: number\n /** Moderator stat group, based on current report assignment. Requires administrator access. */\n moderatorDid?: string\n /** Report-type stat group. Counts only the specified reasons. */\n reportTypes?: string[]\n /** First UTC calendar day to include, inclusive. Defaults to today. The range must not exceed 120 calendar days. */\n startDate?: string\n /** Last UTC calendar day to include, inclusive. Defaults to today. */\n endDate?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n /** When the live query started. */\n computedAt: string\n /** First included UTC calendar day, at midnight. */\n startDate: string\n /** Last included UTC calendar day, at midnight. */\n endDate: string\n reportTypeBreakdown: ReportTypeBreakdown\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 class QueueNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'QueueNotFound') return new QueueNotFoundError(e)\n }\n\n return e\n}\n\nexport interface ReportTypeStats {\n $type?: 'tools.ozone.report.getStatGroupDetails#reportTypeStats'\n /** Fully qualified report reason. */\n reportType: string\n /** Unmuted reports received during the requested UTC calendar days. */\n inboundCount: number\n}\n\nconst hashReportTypeStats = 'reportTypeStats'\n\nexport function isReportTypeStats<V>(v: V) {\n return is$typed(v, id, hashReportTypeStats)\n}\n\nexport function validateReportTypeStats<V>(v: V) {\n return validate<ReportTypeStats & V>(v, id, hashReportTypeStats)\n}\n\n/** Unmuted inbound reports by actual reason, across all statuses, within the selected stat group and UTC date range. */\nexport interface ReportTypeBreakdown {\n $type?: 'tools.ozone.report.getStatGroupDetails#reportTypeBreakdown'\n /** Total unmuted inbound reports in this breakdown. */\n totalCount: number\n stats: ReportTypeStats[]\n}\n\nconst hashReportTypeBreakdown = 'reportTypeBreakdown'\n\nexport function isReportTypeBreakdown<V>(v: V) {\n return is$typed(v, id, hashReportTypeBreakdown)\n}\n\nexport function validateReportTypeBreakdown<V>(v: V) {\n return validate<ReportTypeBreakdown & V>(v, id, hashReportTypeBreakdown)\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"node": ">=22"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atproto/common-web": "^0.5.
|
|
35
|
-
"@atproto/lexicon": "^0.7.
|
|
36
|
-
"@atproto/syntax": "^0.7.
|
|
37
|
-
"@atproto/xrpc": "^0.8.
|
|
34
|
+
"@atproto/common-web": "^0.5.19",
|
|
35
|
+
"@atproto/lexicon": "^0.7.21",
|
|
36
|
+
"@atproto/syntax": "^0.7.9",
|
|
37
|
+
"@atproto/xrpc": "^0.8.20",
|
|
38
38
|
"await-lock": "^3.0.0",
|
|
39
39
|
"multiformats": "^13.0.0",
|
|
40
40
|
"tlds": "^1.234.0",
|
|
41
41
|
"zod": "^3.23.8"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@atproto/lex-cli": "^0.10.
|
|
45
|
-
"@atproto/lex-installer": "^0.2.
|
|
44
|
+
"@atproto/lex-cli": "^0.10.20",
|
|
45
|
+
"@atproto/lex-installer": "^0.2.11",
|
|
46
46
|
"@jest/globals": "^28.1.3",
|
|
47
47
|
"http-terminator": "^3.2.0",
|
|
48
48
|
"jest": "^30.5.2",
|