@atproto/api 0.24.2 → 0.24.3
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 +8 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +1056 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +540 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +103 -0
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js +42 -0
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +4 -0
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +88 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js +56 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -0
- package/package.json +4 -4
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
5
6
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
7
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
|
|
7
8
|
import type * as AppBskyActorDefs from '../actor/defs.js';
|
|
9
|
+
import type * as AppBskyEmbedDefs from './defs.js';
|
|
8
10
|
/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */
|
|
9
11
|
export interface Main {
|
|
10
12
|
$type?: 'app.bsky.embed.external';
|
|
@@ -82,4 +84,105 @@ export interface ColorRGB {
|
|
|
82
84
|
}
|
|
83
85
|
export declare function isColorRGB<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "colorRGB">;
|
|
84
86
|
export declare function validateColorRGB<V>(v: V): ValidationResult<ColorRGB & V>;
|
|
87
|
+
export interface ViewArticle {
|
|
88
|
+
$type?: 'app.bsky.embed.external#viewArticle';
|
|
89
|
+
uri: string;
|
|
90
|
+
title: string;
|
|
91
|
+
description: string;
|
|
92
|
+
createdAt?: string;
|
|
93
|
+
updatedAt?: string;
|
|
94
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
95
|
+
associatedRefs?: ComAtprotoRepoStrongRef.Main[];
|
|
96
|
+
associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[];
|
|
97
|
+
image?: string;
|
|
98
|
+
publisher?: ViewArticlePublication;
|
|
99
|
+
readingTime?: number;
|
|
100
|
+
likeCount?: number;
|
|
101
|
+
/** Available profile previews. Selected deterministically by DID; not a ranking. */
|
|
102
|
+
likers?: AppBskyActorDefs.ProfileViewBasic[];
|
|
103
|
+
}
|
|
104
|
+
export declare function isViewArticle<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticle">;
|
|
105
|
+
export declare function validateViewArticle<V>(v: V): ValidationResult<ViewArticle & V>;
|
|
106
|
+
export interface ViewArticlePublication {
|
|
107
|
+
$type?: 'app.bsky.embed.external#viewArticlePublication';
|
|
108
|
+
uri: string;
|
|
109
|
+
title: string;
|
|
110
|
+
description: string;
|
|
111
|
+
createdAt?: string;
|
|
112
|
+
updatedAt?: string;
|
|
113
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
114
|
+
associatedRefs?: ComAtprotoRepoStrongRef.Main[];
|
|
115
|
+
associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[];
|
|
116
|
+
logo?: string;
|
|
117
|
+
image?: string;
|
|
118
|
+
theme?: ViewArticlePublicationTheme;
|
|
119
|
+
subscriptionCount?: number;
|
|
120
|
+
/** Available profile previews. Selected deterministically by DID; not a ranking. */
|
|
121
|
+
subscribers?: AppBskyActorDefs.ProfileViewBasic[];
|
|
122
|
+
}
|
|
123
|
+
export declare function isViewArticlePublication<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticlePublication">;
|
|
124
|
+
export declare function validateViewArticlePublication<V>(v: V): ValidationResult<ViewArticlePublication & V>;
|
|
125
|
+
export interface ViewArticlePublicationTheme {
|
|
126
|
+
$type?: 'app.bsky.embed.external#viewArticlePublicationTheme';
|
|
127
|
+
/** Hex color string, if available. Example: '#ffffff'. */
|
|
128
|
+
background?: string;
|
|
129
|
+
/** Hex color string, if available. Example: '#ffffff'. */
|
|
130
|
+
foreground?: string;
|
|
131
|
+
/** Hex color string, if available. Example: '#ffffff'. */
|
|
132
|
+
accent?: string;
|
|
133
|
+
/** Hex color string, if available. Example: '#ffffff'. */
|
|
134
|
+
accentForeground?: string;
|
|
135
|
+
}
|
|
136
|
+
export declare function isViewArticlePublicationTheme<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewArticlePublicationTheme">;
|
|
137
|
+
export declare function validateViewArticlePublicationTheme<V>(v: V): ValidationResult<ViewArticlePublicationTheme & V>;
|
|
138
|
+
export interface ViewGallery {
|
|
139
|
+
$type?: 'app.bsky.embed.external#viewGallery';
|
|
140
|
+
uri: string;
|
|
141
|
+
title: string;
|
|
142
|
+
description: string;
|
|
143
|
+
createdAt?: string;
|
|
144
|
+
updatedAt?: string;
|
|
145
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
146
|
+
associatedRefs?: ComAtprotoRepoStrongRef.Main[];
|
|
147
|
+
associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[];
|
|
148
|
+
/** The media items in the gallery. Each item may be of a different type, but all types must be supported by the client. */
|
|
149
|
+
items: ($Typed<ViewGalleryImage> | {
|
|
150
|
+
$type: string;
|
|
151
|
+
})[];
|
|
152
|
+
likeCount?: number;
|
|
153
|
+
/** Available profile previews. Selected deterministically by DID; not a ranking. */
|
|
154
|
+
likers?: AppBskyActorDefs.ProfileViewBasic[];
|
|
155
|
+
}
|
|
156
|
+
export declare function isViewGallery<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewGallery">;
|
|
157
|
+
export declare function validateViewGallery<V>(v: V): ValidationResult<ViewGallery & V>;
|
|
158
|
+
export interface ViewGalleryImage {
|
|
159
|
+
$type?: 'app.bsky.embed.external#viewGalleryImage';
|
|
160
|
+
/** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */
|
|
161
|
+
thumbnail: string;
|
|
162
|
+
/** 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. */
|
|
163
|
+
fullsize: string;
|
|
164
|
+
/** Alt text description of the image, for accessibility. */
|
|
165
|
+
alt?: string;
|
|
166
|
+
aspectRatio?: AppBskyEmbedDefs.AspectRatio;
|
|
167
|
+
}
|
|
168
|
+
export declare function isViewGalleryImage<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewGalleryImage">;
|
|
169
|
+
export declare function validateViewGalleryImage<V>(v: V): ValidationResult<ViewGalleryImage & V>;
|
|
170
|
+
export interface ViewLivestream {
|
|
171
|
+
$type?: 'app.bsky.embed.external#viewLivestream';
|
|
172
|
+
uri: string;
|
|
173
|
+
title: string;
|
|
174
|
+
description: string;
|
|
175
|
+
createdAt?: string;
|
|
176
|
+
updatedAt?: string;
|
|
177
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
178
|
+
associatedRefs?: ComAtprotoRepoStrongRef.Main[];
|
|
179
|
+
associatedProfiles?: AppBskyActorDefs.ProfileViewBasic[];
|
|
180
|
+
image?: string;
|
|
181
|
+
/** True if the livestream is currently active at the time this view is served, false if it has ended. */
|
|
182
|
+
active: boolean;
|
|
183
|
+
startedAt?: string;
|
|
184
|
+
endedAt?: string;
|
|
185
|
+
}
|
|
186
|
+
export declare function isViewLivestream<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewLivestream">;
|
|
187
|
+
export declare function validateViewLivestream<V>(v: V): ValidationResult<ViewLivestream & V>;
|
|
85
188
|
//# sourceMappingURL=external.d.ts.map
|
|
@@ -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;
|
|
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,CA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,CAAC,wCAE7C"}
|
|
@@ -56,4 +56,46 @@ export function isColorRGB(v) {
|
|
|
56
56
|
export function validateColorRGB(v) {
|
|
57
57
|
return validate(v, id, hashColorRGB);
|
|
58
58
|
}
|
|
59
|
+
const hashViewArticle = 'viewArticle';
|
|
60
|
+
export function isViewArticle(v) {
|
|
61
|
+
return is$typed(v, id, hashViewArticle);
|
|
62
|
+
}
|
|
63
|
+
export function validateViewArticle(v) {
|
|
64
|
+
return validate(v, id, hashViewArticle);
|
|
65
|
+
}
|
|
66
|
+
const hashViewArticlePublication = 'viewArticlePublication';
|
|
67
|
+
export function isViewArticlePublication(v) {
|
|
68
|
+
return is$typed(v, id, hashViewArticlePublication);
|
|
69
|
+
}
|
|
70
|
+
export function validateViewArticlePublication(v) {
|
|
71
|
+
return validate(v, id, hashViewArticlePublication);
|
|
72
|
+
}
|
|
73
|
+
const hashViewArticlePublicationTheme = 'viewArticlePublicationTheme';
|
|
74
|
+
export function isViewArticlePublicationTheme(v) {
|
|
75
|
+
return is$typed(v, id, hashViewArticlePublicationTheme);
|
|
76
|
+
}
|
|
77
|
+
export function validateViewArticlePublicationTheme(v) {
|
|
78
|
+
return validate(v, id, hashViewArticlePublicationTheme);
|
|
79
|
+
}
|
|
80
|
+
const hashViewGallery = 'viewGallery';
|
|
81
|
+
export function isViewGallery(v) {
|
|
82
|
+
return is$typed(v, id, hashViewGallery);
|
|
83
|
+
}
|
|
84
|
+
export function validateViewGallery(v) {
|
|
85
|
+
return validate(v, id, hashViewGallery);
|
|
86
|
+
}
|
|
87
|
+
const hashViewGalleryImage = 'viewGalleryImage';
|
|
88
|
+
export function isViewGalleryImage(v) {
|
|
89
|
+
return is$typed(v, id, hashViewGalleryImage);
|
|
90
|
+
}
|
|
91
|
+
export function validateViewGalleryImage(v) {
|
|
92
|
+
return validate(v, id, hashViewGalleryImage);
|
|
93
|
+
}
|
|
94
|
+
const hashViewLivestream = 'viewLivestream';
|
|
95
|
+
export function isViewLivestream(v) {
|
|
96
|
+
return is$typed(v, id, hashViewLivestream);
|
|
97
|
+
}
|
|
98
|
+
export function validateViewLivestream(v) {
|
|
99
|
+
return validate(v, id, hashViewLivestream);
|
|
100
|
+
}
|
|
59
101
|
//# sourceMappingURL=external.js.map
|
|
@@ -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;AAK5B,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;AAOD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI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AI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,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'\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 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"]}
|
|
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;AAOD,MAAM,QAA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AAC1D,CAAC;AAaD,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AAE/C,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AAC9C,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAuB,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AACpE,CAAC;AAmBD,MAAM,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 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 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}\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\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 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}\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"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type $Typed } from '../../../../util.js';
|
|
5
6
|
import type * as AppBskyEmbedExternal from './external.js';
|
|
6
7
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
8
|
export type QueryParams = {
|
|
@@ -13,6 +14,9 @@ export type QueryParams = {
|
|
|
13
14
|
export type InputSchema = undefined;
|
|
14
15
|
export interface OutputSchema {
|
|
15
16
|
view?: AppBskyEmbedExternal.View;
|
|
17
|
+
data?: $Typed<AppBskyEmbedExternal.ViewArticle> | $Typed<AppBskyEmbedExternal.ViewArticlePublication> | $Typed<AppBskyEmbedExternal.ViewGallery> | $Typed<AppBskyEmbedExternal.ViewLivestream> | {
|
|
18
|
+
$type: string;
|
|
19
|
+
};
|
|
16
20
|
/** StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post's external.associatedRefs. */
|
|
17
21
|
associatedRefs?: ComAtprotoRepoStrongRef.Main[];
|
|
18
22
|
associatedRecords?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEmbedExternalView.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"getEmbedExternalView.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAI1D,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,oBAAoB,MAAM,eAAe,CAAA;AAC1D,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,MAAM,WAAW,GAAG;IACxB,qLAAqL;IACrL,GAAG,EAAE,MAAM,CAAA;IACX,mMAAmM;IACnM,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAA;IAChC,IAAI,CAAC,EACD,MAAM,CAAC,oBAAoB,CAAC,WAAW,CAAC,GACxC,MAAM,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,GACnD,MAAM,CAAC,oBAAoB,CAAC,WAAW,CAAC,GACxC,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAAC,GAC3C;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,0IAA0I;IAC1I,cAAc,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;IAC/C,iBAAiB,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,EAAE,CAAA;CACjD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEmbedExternalView.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.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;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"getEmbedExternalView.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.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;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA;AAkChD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,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 AppBskyEmbedExternal from './external.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.getEmbedExternalView'\n\nexport type QueryParams = {\n /** The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's `uri`. May be used for validation in the future. */\n url: string\n /** AT-URIs of any Atmosphere records that can be resolved and used to construct #externalView views. Example: a site.standard.document and optionally its associated site.standard.publication. */\n uris: string[]\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n view?: AppBskyEmbedExternal.View\n data?:\n | $Typed<AppBskyEmbedExternal.ViewArticle>\n | $Typed<AppBskyEmbedExternal.ViewArticlePublication>\n | $Typed<AppBskyEmbedExternal.ViewGallery>\n | $Typed<AppBskyEmbedExternal.ViewLivestream>\n | { $type: string }\n /** StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post's external.associatedRefs. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedRecords?: { [_ in string]: unknown }[]\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"]}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 * as AppBskyEmbedExternal from '../embed/external.js';
|
|
7
|
+
export type QueryParams = {
|
|
8
|
+
/** Preferred languages. Currently ignored. */
|
|
9
|
+
langs?: string[];
|
|
10
|
+
/** The ISO 3166-1 alpha-2 country code used to select curated content. */
|
|
11
|
+
countryCode?: string;
|
|
12
|
+
/** The ISO 3166-2 region code used to select curated content. */
|
|
13
|
+
regionCode?: string;
|
|
14
|
+
};
|
|
15
|
+
export type InputSchema = undefined;
|
|
16
|
+
export interface OutputSchema {
|
|
17
|
+
announcementBanner?: AnnouncementBanner;
|
|
18
|
+
articles: ArticleItem[];
|
|
19
|
+
publications: PublicationItem[];
|
|
20
|
+
photos: GalleryItem[];
|
|
21
|
+
livestreams: LivestreamItem[];
|
|
22
|
+
apps: AppCard[];
|
|
23
|
+
}
|
|
24
|
+
export interface CallOptions {
|
|
25
|
+
signal?: AbortSignal;
|
|
26
|
+
headers?: HeadersMap;
|
|
27
|
+
}
|
|
28
|
+
export interface Response {
|
|
29
|
+
success: boolean;
|
|
30
|
+
headers: HeadersMap;
|
|
31
|
+
data: OutputSchema;
|
|
32
|
+
}
|
|
33
|
+
export declare function toKnownErr(e: any): any;
|
|
34
|
+
export interface ArticleItem {
|
|
35
|
+
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleItem';
|
|
36
|
+
featured: boolean;
|
|
37
|
+
view: AppBskyEmbedExternal.ViewArticle;
|
|
38
|
+
}
|
|
39
|
+
export declare function isArticleItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "articleItem">;
|
|
40
|
+
export declare function validateArticleItem<V>(v: V): ValidationResult<ArticleItem & V>;
|
|
41
|
+
export interface PublicationItem {
|
|
42
|
+
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationItem';
|
|
43
|
+
featured: boolean;
|
|
44
|
+
view: AppBskyEmbedExternal.ViewArticlePublication;
|
|
45
|
+
}
|
|
46
|
+
export declare function isPublicationItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "publicationItem">;
|
|
47
|
+
export declare function validatePublicationItem<V>(v: V): ValidationResult<PublicationItem & V>;
|
|
48
|
+
export interface GalleryItem {
|
|
49
|
+
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryItem';
|
|
50
|
+
featured: boolean;
|
|
51
|
+
view: AppBskyEmbedExternal.ViewGallery;
|
|
52
|
+
}
|
|
53
|
+
export declare function isGalleryItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "galleryItem">;
|
|
54
|
+
export declare function validateGalleryItem<V>(v: V): ValidationResult<GalleryItem & V>;
|
|
55
|
+
export interface LivestreamItem {
|
|
56
|
+
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem';
|
|
57
|
+
featured: boolean;
|
|
58
|
+
view: AppBskyEmbedExternal.ViewLivestream;
|
|
59
|
+
}
|
|
60
|
+
export declare function isLivestreamItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "livestreamItem">;
|
|
61
|
+
export declare function validateLivestreamItem<V>(v: V): ValidationResult<LivestreamItem & V>;
|
|
62
|
+
export interface AnnouncementBanner {
|
|
63
|
+
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#announcementBanner';
|
|
64
|
+
id?: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
url?: string;
|
|
68
|
+
image?: string;
|
|
69
|
+
overlayColor?: string;
|
|
70
|
+
textColor?: string;
|
|
71
|
+
}
|
|
72
|
+
export declare function isAnnouncementBanner<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "announcementBanner">;
|
|
73
|
+
export declare function validateAnnouncementBanner<V>(v: V): ValidationResult<AnnouncementBanner & V>;
|
|
74
|
+
export interface AppCard {
|
|
75
|
+
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#appCard';
|
|
76
|
+
id?: string;
|
|
77
|
+
title?: string;
|
|
78
|
+
description?: string;
|
|
79
|
+
logo?: string;
|
|
80
|
+
backgroundImage?: string;
|
|
81
|
+
overlayColor?: string;
|
|
82
|
+
textColor?: string;
|
|
83
|
+
url?: string;
|
|
84
|
+
category?: string;
|
|
85
|
+
}
|
|
86
|
+
export declare function isAppCard<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "appCard">;
|
|
87
|
+
export declare function validateAppCard<V>(v: V): ValidationResult<AppCard & V>;
|
|
88
|
+
//# sourceMappingURL=getAtmosphereExploreTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAtmosphereExploreTab.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosph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HAE3C;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,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+GAEhC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iCAEtC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 = 'app.bsky.unspecced.getAtmosphereExploreTab';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const hashArticleItem = 'articleItem';
|
|
15
|
+
export function isArticleItem(v) {
|
|
16
|
+
return is$typed(v, id, hashArticleItem);
|
|
17
|
+
}
|
|
18
|
+
export function validateArticleItem(v) {
|
|
19
|
+
return validate(v, id, hashArticleItem);
|
|
20
|
+
}
|
|
21
|
+
const hashPublicationItem = 'publicationItem';
|
|
22
|
+
export function isPublicationItem(v) {
|
|
23
|
+
return is$typed(v, id, hashPublicationItem);
|
|
24
|
+
}
|
|
25
|
+
export function validatePublicationItem(v) {
|
|
26
|
+
return validate(v, id, hashPublicationItem);
|
|
27
|
+
}
|
|
28
|
+
const hashGalleryItem = 'galleryItem';
|
|
29
|
+
export function isGalleryItem(v) {
|
|
30
|
+
return is$typed(v, id, hashGalleryItem);
|
|
31
|
+
}
|
|
32
|
+
export function validateGalleryItem(v) {
|
|
33
|
+
return validate(v, id, hashGalleryItem);
|
|
34
|
+
}
|
|
35
|
+
const hashLivestreamItem = 'livestreamItem';
|
|
36
|
+
export function isLivestreamItem(v) {
|
|
37
|
+
return is$typed(v, id, hashLivestreamItem);
|
|
38
|
+
}
|
|
39
|
+
export function validateLivestreamItem(v) {
|
|
40
|
+
return validate(v, id, hashLivestreamItem);
|
|
41
|
+
}
|
|
42
|
+
const hashAnnouncementBanner = 'announcementBanner';
|
|
43
|
+
export function isAnnouncementBanner(v) {
|
|
44
|
+
return is$typed(v, id, hashAnnouncementBanner);
|
|
45
|
+
}
|
|
46
|
+
export function validateAnnouncementBanner(v) {
|
|
47
|
+
return validate(v, id, hashAnnouncementBanner);
|
|
48
|
+
}
|
|
49
|
+
const hashAppCard = 'appCard';
|
|
50
|
+
export function isAppCard(v) {
|
|
51
|
+
return is$typed(v, id, hashAppCard);
|
|
52
|
+
}
|
|
53
|
+
export function validateAppCard(v) {
|
|
54
|
+
return validate(v, id, hashAppCard);
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=getAtmosphereExploreTab.js.map
|
|
@@ -0,0 +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,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BAAgB,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;AAaD,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,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;AAeD,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 AppBskyEmbedExternal from '../embed/external.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereExploreTab'\n\nexport type QueryParams = {\n /** Preferred languages. Currently ignored. */\n langs?: string[]\n /** The ISO 3166-1 alpha-2 country code used to select curated content. */\n countryCode?: string\n /** The ISO 3166-2 region code used to select curated content. */\n regionCode?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n announcementBanner?: AnnouncementBanner\n articles: ArticleItem[]\n publications: PublicationItem[]\n photos: GalleryItem[]\n livestreams: LivestreamItem[]\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 ArticleItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleItem'\n featured: boolean\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 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 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 featured: boolean\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 logo?: string\n backgroundImage?: string\n overlayColor?: string\n textColor?: string\n url?: string\n category?: string\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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"multiformats": "^13.0.0",
|
|
36
36
|
"tlds": "^1.234.0",
|
|
37
37
|
"zod": "^3.23.8",
|
|
38
|
-
"@atproto/common-web": "^0.5.14",
|
|
39
|
-
"@atproto/xrpc": "^0.8.15",
|
|
40
38
|
"@atproto/lexicon": "^0.7.16",
|
|
41
|
-
"@atproto/
|
|
39
|
+
"@atproto/common-web": "^0.5.14",
|
|
40
|
+
"@atproto/syntax": "^0.7.6",
|
|
41
|
+
"@atproto/xrpc": "^0.8.15"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jest/globals": "^28.1.3",
|