@atproto/api 0.12.25 → 0.12.26-next.0
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/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +6 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +101 -15
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +112 -18
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/defs.d.ts +13 -0
- package/dist/client/types/app/bsky/embed/defs.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/defs.js +16 -0
- package/dist/client/types/app/bsky/embed/defs.js.map +1 -0
- package/dist/client/types/app/bsky/embed/images.d.ts +3 -10
- package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/images.js +1 -11
- package/dist/client/types/app/bsky/embed/images.js.map +1 -1
- package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/client/types/app/bsky/embed/record.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/record.js.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +3 -2
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.js.map +1 -1
- package/dist/client/types/app/bsky/embed/video.d.ts +33 -0
- package/dist/client/types/app/bsky/embed/video.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/video.js +35 -0
- package/dist/client/types/app/bsky/embed/video.js.map +1 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/client/types/app/bsky/feed/post.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/post.js.map +1 -1
- package/package.json +3 -3
- package/src/client/index.ts +4 -0
- package/src/client/lexicons.ts +114 -19
- package/src/client/types/app/bsky/embed/defs.ts +26 -0
- package/src/client/types/app/bsky/embed/images.ts +3 -21
- package/src/client/types/app/bsky/embed/record.ts +2 -0
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +3 -0
- package/src/client/types/app/bsky/embed/video.ts +67 -0
- package/src/client/types/app/bsky/feed/defs.ts +2 -0
- package/src/client/types/app/bsky/feed/post.ts +2 -0
package/src/client/lexicons.ts
CHANGED
|
@@ -4762,6 +4762,28 @@ export const schemaDict = {
|
|
|
4762
4762
|
},
|
|
4763
4763
|
},
|
|
4764
4764
|
},
|
|
4765
|
+
AppBskyEmbedDefs: {
|
|
4766
|
+
lexicon: 1,
|
|
4767
|
+
id: 'app.bsky.embed.defs',
|
|
4768
|
+
defs: {
|
|
4769
|
+
aspectRatio: {
|
|
4770
|
+
type: 'object',
|
|
4771
|
+
description:
|
|
4772
|
+
'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
|
|
4773
|
+
required: ['width', 'height'],
|
|
4774
|
+
properties: {
|
|
4775
|
+
width: {
|
|
4776
|
+
type: 'integer',
|
|
4777
|
+
minimum: 1,
|
|
4778
|
+
},
|
|
4779
|
+
height: {
|
|
4780
|
+
type: 'integer',
|
|
4781
|
+
minimum: 1,
|
|
4782
|
+
},
|
|
4783
|
+
},
|
|
4784
|
+
},
|
|
4785
|
+
},
|
|
4786
|
+
},
|
|
4765
4787
|
AppBskyEmbedExternal: {
|
|
4766
4788
|
lexicon: 1,
|
|
4767
4789
|
id: 'app.bsky.embed.external',
|
|
@@ -4866,23 +4888,7 @@ export const schemaDict = {
|
|
|
4866
4888
|
},
|
|
4867
4889
|
aspectRatio: {
|
|
4868
4890
|
type: 'ref',
|
|
4869
|
-
ref: 'lex:app.bsky.embed.
|
|
4870
|
-
},
|
|
4871
|
-
},
|
|
4872
|
-
},
|
|
4873
|
-
aspectRatio: {
|
|
4874
|
-
type: 'object',
|
|
4875
|
-
description:
|
|
4876
|
-
'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
|
|
4877
|
-
required: ['width', 'height'],
|
|
4878
|
-
properties: {
|
|
4879
|
-
width: {
|
|
4880
|
-
type: 'integer',
|
|
4881
|
-
minimum: 1,
|
|
4882
|
-
},
|
|
4883
|
-
height: {
|
|
4884
|
-
type: 'integer',
|
|
4885
|
-
minimum: 1,
|
|
4891
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
4886
4892
|
},
|
|
4887
4893
|
},
|
|
4888
4894
|
},
|
|
@@ -4923,7 +4929,7 @@ export const schemaDict = {
|
|
|
4923
4929
|
},
|
|
4924
4930
|
aspectRatio: {
|
|
4925
4931
|
type: 'ref',
|
|
4926
|
-
ref: 'lex:app.bsky.embed.
|
|
4932
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
4927
4933
|
},
|
|
4928
4934
|
},
|
|
4929
4935
|
},
|
|
@@ -5005,6 +5011,7 @@ export const schemaDict = {
|
|
|
5005
5011
|
type: 'union',
|
|
5006
5012
|
refs: [
|
|
5007
5013
|
'lex:app.bsky.embed.images#view',
|
|
5014
|
+
'lex:app.bsky.embed.video#view',
|
|
5008
5015
|
'lex:app.bsky.embed.external#view',
|
|
5009
5016
|
'lex:app.bsky.embed.record#view',
|
|
5010
5017
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -5067,7 +5074,11 @@ export const schemaDict = {
|
|
|
5067
5074
|
},
|
|
5068
5075
|
media: {
|
|
5069
5076
|
type: 'union',
|
|
5070
|
-
refs: [
|
|
5077
|
+
refs: [
|
|
5078
|
+
'lex:app.bsky.embed.images',
|
|
5079
|
+
'lex:app.bsky.embed.video',
|
|
5080
|
+
'lex:app.bsky.embed.external',
|
|
5081
|
+
],
|
|
5071
5082
|
},
|
|
5072
5083
|
},
|
|
5073
5084
|
},
|
|
@@ -5083,6 +5094,7 @@ export const schemaDict = {
|
|
|
5083
5094
|
type: 'union',
|
|
5084
5095
|
refs: [
|
|
5085
5096
|
'lex:app.bsky.embed.images#view',
|
|
5097
|
+
'lex:app.bsky.embed.video#view',
|
|
5086
5098
|
'lex:app.bsky.embed.external#view',
|
|
5087
5099
|
],
|
|
5088
5100
|
},
|
|
@@ -5090,6 +5102,85 @@ export const schemaDict = {
|
|
|
5090
5102
|
},
|
|
5091
5103
|
},
|
|
5092
5104
|
},
|
|
5105
|
+
AppBskyEmbedVideo: {
|
|
5106
|
+
lexicon: 1,
|
|
5107
|
+
id: 'app.bsky.embed.video',
|
|
5108
|
+
description: 'A video embedded in a Bluesky record (eg, a post).',
|
|
5109
|
+
defs: {
|
|
5110
|
+
main: {
|
|
5111
|
+
type: 'object',
|
|
5112
|
+
required: ['video'],
|
|
5113
|
+
properties: {
|
|
5114
|
+
video: {
|
|
5115
|
+
type: 'blob',
|
|
5116
|
+
accept: ['video/mp4'],
|
|
5117
|
+
maxSize: 50000000,
|
|
5118
|
+
},
|
|
5119
|
+
captions: {
|
|
5120
|
+
type: 'array',
|
|
5121
|
+
items: {
|
|
5122
|
+
type: 'ref',
|
|
5123
|
+
ref: 'lex:app.bsky.embed.video#caption',
|
|
5124
|
+
},
|
|
5125
|
+
maxLength: 20,
|
|
5126
|
+
},
|
|
5127
|
+
alt: {
|
|
5128
|
+
type: 'string',
|
|
5129
|
+
description:
|
|
5130
|
+
'Alt text description of the video, for accessibility.',
|
|
5131
|
+
maxGraphemes: 1000,
|
|
5132
|
+
maxLength: 10000,
|
|
5133
|
+
},
|
|
5134
|
+
aspectRatio: {
|
|
5135
|
+
type: 'ref',
|
|
5136
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
5137
|
+
},
|
|
5138
|
+
},
|
|
5139
|
+
},
|
|
5140
|
+
caption: {
|
|
5141
|
+
type: 'object',
|
|
5142
|
+
required: ['lang', 'file'],
|
|
5143
|
+
properties: {
|
|
5144
|
+
lang: {
|
|
5145
|
+
type: 'string',
|
|
5146
|
+
format: 'language',
|
|
5147
|
+
},
|
|
5148
|
+
file: {
|
|
5149
|
+
type: 'blob',
|
|
5150
|
+
accept: ['text/vtt'],
|
|
5151
|
+
maxSize: 20000,
|
|
5152
|
+
},
|
|
5153
|
+
},
|
|
5154
|
+
},
|
|
5155
|
+
view: {
|
|
5156
|
+
type: 'object',
|
|
5157
|
+
required: ['cid', 'playlist'],
|
|
5158
|
+
properties: {
|
|
5159
|
+
cid: {
|
|
5160
|
+
type: 'string',
|
|
5161
|
+
format: 'cid',
|
|
5162
|
+
},
|
|
5163
|
+
playlist: {
|
|
5164
|
+
type: 'string',
|
|
5165
|
+
format: 'uri',
|
|
5166
|
+
},
|
|
5167
|
+
thumbnail: {
|
|
5168
|
+
type: 'string',
|
|
5169
|
+
format: 'uri',
|
|
5170
|
+
},
|
|
5171
|
+
alt: {
|
|
5172
|
+
type: 'string',
|
|
5173
|
+
maxGraphemes: 1000,
|
|
5174
|
+
maxLength: 10000,
|
|
5175
|
+
},
|
|
5176
|
+
aspectRatio: {
|
|
5177
|
+
type: 'ref',
|
|
5178
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
5179
|
+
},
|
|
5180
|
+
},
|
|
5181
|
+
},
|
|
5182
|
+
},
|
|
5183
|
+
},
|
|
5093
5184
|
AppBskyFeedDefs: {
|
|
5094
5185
|
lexicon: 1,
|
|
5095
5186
|
id: 'app.bsky.feed.defs',
|
|
@@ -5117,6 +5208,7 @@ export const schemaDict = {
|
|
|
5117
5208
|
type: 'union',
|
|
5118
5209
|
refs: [
|
|
5119
5210
|
'lex:app.bsky.embed.images#view',
|
|
5211
|
+
'lex:app.bsky.embed.video#view',
|
|
5120
5212
|
'lex:app.bsky.embed.external#view',
|
|
5121
5213
|
'lex:app.bsky.embed.record#view',
|
|
5122
5214
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -6471,6 +6563,7 @@ export const schemaDict = {
|
|
|
6471
6563
|
type: 'union',
|
|
6472
6564
|
refs: [
|
|
6473
6565
|
'lex:app.bsky.embed.images',
|
|
6566
|
+
'lex:app.bsky.embed.video',
|
|
6474
6567
|
'lex:app.bsky.embed.external',
|
|
6475
6568
|
'lex:app.bsky.embed.record',
|
|
6476
6569
|
'lex:app.bsky.embed.recordWithMedia',
|
|
@@ -11740,10 +11833,12 @@ export const ids = {
|
|
|
11740
11833
|
AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
|
|
11741
11834
|
AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
|
|
11742
11835
|
AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
|
|
11836
|
+
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
11743
11837
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
11744
11838
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
11745
11839
|
AppBskyEmbedRecord: 'app.bsky.embed.record',
|
|
11746
11840
|
AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
|
|
11841
|
+
AppBskyEmbedVideo: 'app.bsky.embed.video',
|
|
11747
11842
|
AppBskyFeedDefs: 'app.bsky.feed.defs',
|
|
11748
11843
|
AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
|
|
11749
11844
|
AppBskyFeedGenerator: 'app.bsky.feed.generator',
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { isObj, hasProp } from '../../../../util'
|
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
|
7
|
+
import { CID } from 'multiformats/cid'
|
|
8
|
+
|
|
9
|
+
/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
|
|
10
|
+
export interface AspectRatio {
|
|
11
|
+
width: number
|
|
12
|
+
height: number
|
|
13
|
+
[k: string]: unknown
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function isAspectRatio(v: unknown): v is AspectRatio {
|
|
17
|
+
return (
|
|
18
|
+
isObj(v) &&
|
|
19
|
+
hasProp(v, '$type') &&
|
|
20
|
+
v.$type === 'app.bsky.embed.defs#aspectRatio'
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function validateAspectRatio(v: unknown): ValidationResult {
|
|
25
|
+
return lexicons.validate('app.bsky.embed.defs#aspectRatio', v)
|
|
26
|
+
}
|
|
@@ -5,6 +5,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
5
5
|
import { isObj, hasProp } from '../../../../util'
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
|
+
import * as AppBskyEmbedDefs from './defs'
|
|
8
9
|
|
|
9
10
|
export interface Main {
|
|
10
11
|
images: Image[]
|
|
@@ -28,7 +29,7 @@ export interface Image {
|
|
|
28
29
|
image: BlobRef
|
|
29
30
|
/** Alt text description of the image, for accessibility. */
|
|
30
31
|
alt: string
|
|
31
|
-
aspectRatio?: AspectRatio
|
|
32
|
+
aspectRatio?: AppBskyEmbedDefs.AspectRatio
|
|
32
33
|
[k: string]: unknown
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -42,25 +43,6 @@ export function validateImage(v: unknown): ValidationResult {
|
|
|
42
43
|
return lexicons.validate('app.bsky.embed.images#image', v)
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
|
|
46
|
-
export interface AspectRatio {
|
|
47
|
-
width: number
|
|
48
|
-
height: number
|
|
49
|
-
[k: string]: unknown
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function isAspectRatio(v: unknown): v is AspectRatio {
|
|
53
|
-
return (
|
|
54
|
-
isObj(v) &&
|
|
55
|
-
hasProp(v, '$type') &&
|
|
56
|
-
v.$type === 'app.bsky.embed.images#aspectRatio'
|
|
57
|
-
)
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function validateAspectRatio(v: unknown): ValidationResult {
|
|
61
|
-
return lexicons.validate('app.bsky.embed.images#aspectRatio', v)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
46
|
export interface View {
|
|
65
47
|
images: ViewImage[]
|
|
66
48
|
[k: string]: unknown
|
|
@@ -83,7 +65,7 @@ export interface ViewImage {
|
|
|
83
65
|
fullsize: string
|
|
84
66
|
/** Alt text description of the image, for accessibility. */
|
|
85
67
|
alt: string
|
|
86
|
-
aspectRatio?: AspectRatio
|
|
68
|
+
aspectRatio?: AppBskyEmbedDefs.AspectRatio
|
|
87
69
|
[k: string]: unknown
|
|
88
70
|
}
|
|
89
71
|
|
|
@@ -12,6 +12,7 @@ import * as AppBskyLabelerDefs from '../labeler/defs'
|
|
|
12
12
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
13
13
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
14
14
|
import * as AppBskyEmbedImages from './images'
|
|
15
|
+
import * as AppBskyEmbedVideo from './video'
|
|
15
16
|
import * as AppBskyEmbedExternal from './external'
|
|
16
17
|
import * as AppBskyEmbedRecordWithMedia from './recordWithMedia'
|
|
17
18
|
|
|
@@ -68,6 +69,7 @@ export interface ViewRecord {
|
|
|
68
69
|
likeCount?: number
|
|
69
70
|
embeds?: (
|
|
70
71
|
| AppBskyEmbedImages.View
|
|
72
|
+
| AppBskyEmbedVideo.View
|
|
71
73
|
| AppBskyEmbedExternal.View
|
|
72
74
|
| View
|
|
73
75
|
| AppBskyEmbedRecordWithMedia.View
|
|
@@ -7,12 +7,14 @@ import { lexicons } from '../../../../lexicons'
|
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as AppBskyEmbedRecord from './record'
|
|
9
9
|
import * as AppBskyEmbedImages from './images'
|
|
10
|
+
import * as AppBskyEmbedVideo from './video'
|
|
10
11
|
import * as AppBskyEmbedExternal from './external'
|
|
11
12
|
|
|
12
13
|
export interface Main {
|
|
13
14
|
record: AppBskyEmbedRecord.Main
|
|
14
15
|
media:
|
|
15
16
|
| AppBskyEmbedImages.Main
|
|
17
|
+
| AppBskyEmbedVideo.Main
|
|
16
18
|
| AppBskyEmbedExternal.Main
|
|
17
19
|
| { $type: string; [k: string]: unknown }
|
|
18
20
|
[k: string]: unknown
|
|
@@ -35,6 +37,7 @@ export interface View {
|
|
|
35
37
|
record: AppBskyEmbedRecord.View
|
|
36
38
|
media:
|
|
37
39
|
| AppBskyEmbedImages.View
|
|
40
|
+
| AppBskyEmbedVideo.View
|
|
38
41
|
| AppBskyEmbedExternal.View
|
|
39
42
|
| { $type: string; [k: string]: unknown }
|
|
40
43
|
[k: string]: unknown
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { isObj, hasProp } from '../../../../util'
|
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
|
7
|
+
import { CID } from 'multiformats/cid'
|
|
8
|
+
import * as AppBskyEmbedDefs from './defs'
|
|
9
|
+
|
|
10
|
+
export interface Main {
|
|
11
|
+
video: BlobRef
|
|
12
|
+
captions?: Caption[]
|
|
13
|
+
/** Alt text description of the video, for accessibility. */
|
|
14
|
+
alt?: string
|
|
15
|
+
aspectRatio?: AppBskyEmbedDefs.AspectRatio
|
|
16
|
+
[k: string]: unknown
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function isMain(v: unknown): v is Main {
|
|
20
|
+
return (
|
|
21
|
+
isObj(v) &&
|
|
22
|
+
hasProp(v, '$type') &&
|
|
23
|
+
(v.$type === 'app.bsky.embed.video#main' ||
|
|
24
|
+
v.$type === 'app.bsky.embed.video')
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function validateMain(v: unknown): ValidationResult {
|
|
29
|
+
return lexicons.validate('app.bsky.embed.video#main', v)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface Caption {
|
|
33
|
+
lang: string
|
|
34
|
+
file: BlobRef
|
|
35
|
+
[k: string]: unknown
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function isCaption(v: unknown): v is Caption {
|
|
39
|
+
return (
|
|
40
|
+
isObj(v) &&
|
|
41
|
+
hasProp(v, '$type') &&
|
|
42
|
+
v.$type === 'app.bsky.embed.video#caption'
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function validateCaption(v: unknown): ValidationResult {
|
|
47
|
+
return lexicons.validate('app.bsky.embed.video#caption', v)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface View {
|
|
51
|
+
cid: string
|
|
52
|
+
playlist: string
|
|
53
|
+
thumbnail?: string
|
|
54
|
+
alt?: string
|
|
55
|
+
aspectRatio?: AppBskyEmbedDefs.AspectRatio
|
|
56
|
+
[k: string]: unknown
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function isView(v: unknown): v is View {
|
|
60
|
+
return (
|
|
61
|
+
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.embed.video#view'
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function validateView(v: unknown): ValidationResult {
|
|
66
|
+
return lexicons.validate('app.bsky.embed.video#view', v)
|
|
67
|
+
}
|
|
@@ -7,6 +7,7 @@ import { lexicons } from '../../../../lexicons'
|
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
9
9
|
import * as AppBskyEmbedImages from '../embed/images'
|
|
10
|
+
import * as AppBskyEmbedVideo from '../embed/video'
|
|
10
11
|
import * as AppBskyEmbedExternal from '../embed/external'
|
|
11
12
|
import * as AppBskyEmbedRecord from '../embed/record'
|
|
12
13
|
import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
|
|
@@ -21,6 +22,7 @@ export interface PostView {
|
|
|
21
22
|
record: {}
|
|
22
23
|
embed?:
|
|
23
24
|
| AppBskyEmbedImages.View
|
|
25
|
+
| AppBskyEmbedVideo.View
|
|
24
26
|
| AppBskyEmbedExternal.View
|
|
25
27
|
| AppBskyEmbedRecord.View
|
|
26
28
|
| AppBskyEmbedRecordWithMedia.View
|
|
@@ -7,6 +7,7 @@ import { lexicons } from '../../../../lexicons'
|
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as AppBskyRichtextFacet from '../richtext/facet'
|
|
9
9
|
import * as AppBskyEmbedImages from '../embed/images'
|
|
10
|
+
import * as AppBskyEmbedVideo from '../embed/video'
|
|
10
11
|
import * as AppBskyEmbedExternal from '../embed/external'
|
|
11
12
|
import * as AppBskyEmbedRecord from '../embed/record'
|
|
12
13
|
import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
|
|
@@ -23,6 +24,7 @@ export interface Record {
|
|
|
23
24
|
reply?: ReplyRef
|
|
24
25
|
embed?:
|
|
25
26
|
| AppBskyEmbedImages.Main
|
|
27
|
+
| AppBskyEmbedVideo.Main
|
|
26
28
|
| AppBskyEmbedExternal.Main
|
|
27
29
|
| AppBskyEmbedRecord.Main
|
|
28
30
|
| AppBskyEmbedRecordWithMedia.Main
|