@atcute/bluesky 3.1.0 → 3.1.1
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/LICENSE +12 -15
- package/dist/lexicons/types/app/bsky/unspecced/defs.d.ts +44 -0
- package/dist/lexicons/types/app/bsky/unspecced/defs.js +29 -0
- package/dist/lexicons/types/app/bsky/unspecced/defs.js.map +1 -1
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts +3 -14
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.js +3 -12
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +1 -1
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.d.ts +2 -42
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.js +5 -33
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.js.map +1 -1
- package/lib/lexicons/types/app/bsky/unspecced/defs.ts +43 -0
- package/lib/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.ts +3 -16
- package/lib/lexicons/types/app/bsky/unspecced/getPostThreadV2.ts +5 -50
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
3
|
-
in the Software without restriction, including without limitation the rights
|
|
4
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
5
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
6
|
-
furnished to do so, subject to the following conditions:
|
|
1
|
+
BSD Zero Clause License
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
copies or substantial portions of the Software.
|
|
3
|
+
Copyright (c) 2025 Mary
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
2
|
import * as AppBskyActorDefs from '../actor/defs.js';
|
|
3
|
+
import * as AppBskyFeedDefs from '../feed/defs.js';
|
|
3
4
|
declare const _skeletonSearchActorSchema: v.ObjectSchema<{
|
|
4
5
|
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.defs#skeletonSearchActor">, undefined>;
|
|
5
6
|
did: v.FormattedStringSchema<"did">;
|
|
@@ -23,6 +24,25 @@ declare const _skeletonTrendSchema: v.ObjectSchema<{
|
|
|
23
24
|
status: v.OptionalSchema<v.StringSchema<(string & {}) | "hot">, undefined>;
|
|
24
25
|
topic: v.StringSchema<string>;
|
|
25
26
|
}>;
|
|
27
|
+
declare const _threadItemBlockedSchema: v.ObjectSchema<{
|
|
28
|
+
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.defs#threadItemBlocked">, undefined>;
|
|
29
|
+
readonly author: AppBskyFeedDefs.blockedAuthorSchema;
|
|
30
|
+
}>;
|
|
31
|
+
declare const _threadItemNoUnauthenticatedSchema: v.ObjectSchema<{
|
|
32
|
+
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.defs#threadItemNoUnauthenticated">, undefined>;
|
|
33
|
+
}>;
|
|
34
|
+
declare const _threadItemNotFoundSchema: v.ObjectSchema<{
|
|
35
|
+
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.defs#threadItemNotFound">, undefined>;
|
|
36
|
+
}>;
|
|
37
|
+
declare const _threadItemPostSchema: v.ObjectSchema<{
|
|
38
|
+
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.defs#threadItemPost">, undefined>;
|
|
39
|
+
hiddenByThreadgate: v.BooleanSchema;
|
|
40
|
+
moreParents: v.BooleanSchema;
|
|
41
|
+
moreReplies: v.IntegerSchema;
|
|
42
|
+
mutedByViewer: v.BooleanSchema;
|
|
43
|
+
opThread: v.BooleanSchema;
|
|
44
|
+
readonly post: AppBskyFeedDefs.postViewSchema;
|
|
45
|
+
}>;
|
|
26
46
|
declare const _trendViewSchema: v.ObjectSchema<{
|
|
27
47
|
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.defs#trendView">, undefined>;
|
|
28
48
|
readonly actors: v.ArraySchema<AppBskyActorDefs.profileViewBasicSchema>;
|
|
@@ -45,6 +65,10 @@ type skeletonSearchActor$schematype = typeof _skeletonSearchActorSchema;
|
|
|
45
65
|
type skeletonSearchPost$schematype = typeof _skeletonSearchPostSchema;
|
|
46
66
|
type skeletonSearchStarterPack$schematype = typeof _skeletonSearchStarterPackSchema;
|
|
47
67
|
type skeletonTrend$schematype = typeof _skeletonTrendSchema;
|
|
68
|
+
type threadItemBlocked$schematype = typeof _threadItemBlockedSchema;
|
|
69
|
+
type threadItemNoUnauthenticated$schematype = typeof _threadItemNoUnauthenticatedSchema;
|
|
70
|
+
type threadItemNotFound$schematype = typeof _threadItemNotFoundSchema;
|
|
71
|
+
type threadItemPost$schematype = typeof _threadItemPostSchema;
|
|
48
72
|
type trendView$schematype = typeof _trendViewSchema;
|
|
49
73
|
type trendingTopic$schematype = typeof _trendingTopicSchema;
|
|
50
74
|
export interface skeletonSearchActorSchema extends skeletonSearchActor$schematype {
|
|
@@ -55,6 +79,14 @@ export interface skeletonSearchStarterPackSchema extends skeletonSearchStarterPa
|
|
|
55
79
|
}
|
|
56
80
|
export interface skeletonTrendSchema extends skeletonTrend$schematype {
|
|
57
81
|
}
|
|
82
|
+
export interface threadItemBlockedSchema extends threadItemBlocked$schematype {
|
|
83
|
+
}
|
|
84
|
+
export interface threadItemNoUnauthenticatedSchema extends threadItemNoUnauthenticated$schematype {
|
|
85
|
+
}
|
|
86
|
+
export interface threadItemNotFoundSchema extends threadItemNotFound$schematype {
|
|
87
|
+
}
|
|
88
|
+
export interface threadItemPostSchema extends threadItemPost$schematype {
|
|
89
|
+
}
|
|
58
90
|
export interface trendViewSchema extends trendView$schematype {
|
|
59
91
|
}
|
|
60
92
|
export interface trendingTopicSchema extends trendingTopic$schematype {
|
|
@@ -63,6 +95,10 @@ export declare const skeletonSearchActorSchema: skeletonSearchActorSchema;
|
|
|
63
95
|
export declare const skeletonSearchPostSchema: skeletonSearchPostSchema;
|
|
64
96
|
export declare const skeletonSearchStarterPackSchema: skeletonSearchStarterPackSchema;
|
|
65
97
|
export declare const skeletonTrendSchema: skeletonTrendSchema;
|
|
98
|
+
export declare const threadItemBlockedSchema: threadItemBlockedSchema;
|
|
99
|
+
export declare const threadItemNoUnauthenticatedSchema: threadItemNoUnauthenticatedSchema;
|
|
100
|
+
export declare const threadItemNotFoundSchema: threadItemNotFoundSchema;
|
|
101
|
+
export declare const threadItemPostSchema: threadItemPostSchema;
|
|
66
102
|
export declare const trendViewSchema: trendViewSchema;
|
|
67
103
|
export declare const trendingTopicSchema: trendingTopicSchema;
|
|
68
104
|
export interface SkeletonSearchActor extends v.InferInput<typeof skeletonSearchActorSchema> {
|
|
@@ -73,6 +109,14 @@ export interface SkeletonSearchStarterPack extends v.InferInput<typeof skeletonS
|
|
|
73
109
|
}
|
|
74
110
|
export interface SkeletonTrend extends v.InferInput<typeof skeletonTrendSchema> {
|
|
75
111
|
}
|
|
112
|
+
export interface ThreadItemBlocked extends v.InferInput<typeof threadItemBlockedSchema> {
|
|
113
|
+
}
|
|
114
|
+
export interface ThreadItemNoUnauthenticated extends v.InferInput<typeof threadItemNoUnauthenticatedSchema> {
|
|
115
|
+
}
|
|
116
|
+
export interface ThreadItemNotFound extends v.InferInput<typeof threadItemNotFoundSchema> {
|
|
117
|
+
}
|
|
118
|
+
export interface ThreadItemPost extends v.InferInput<typeof threadItemPostSchema> {
|
|
119
|
+
}
|
|
76
120
|
export interface TrendView extends v.InferInput<typeof trendViewSchema> {
|
|
77
121
|
}
|
|
78
122
|
export interface TrendingTopic extends v.InferInput<typeof trendingTopicSchema> {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
2
|
import * as AppBskyActorDefs from '../actor/defs.js';
|
|
3
|
+
import * as AppBskyFeedDefs from '../feed/defs.js';
|
|
3
4
|
const _skeletonSearchActorSchema = /*#__PURE__*/ v.object({
|
|
4
5
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#skeletonSearchActor')),
|
|
5
6
|
did: /*#__PURE__*/ v.didString(),
|
|
@@ -24,6 +25,30 @@ const _skeletonTrendSchema = /*#__PURE__*/ v.object({
|
|
|
24
25
|
status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
25
26
|
topic: /*#__PURE__*/ v.string(),
|
|
26
27
|
});
|
|
28
|
+
const _threadItemBlockedSchema = /*#__PURE__*/ v.object({
|
|
29
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemBlocked')),
|
|
30
|
+
get author() {
|
|
31
|
+
return AppBskyFeedDefs.blockedAuthorSchema;
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
const _threadItemNoUnauthenticatedSchema = /*#__PURE__*/ v.object({
|
|
35
|
+
$type: /*#__PURE__*/ v.optional(
|
|
36
|
+
/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemNoUnauthenticated')),
|
|
37
|
+
});
|
|
38
|
+
const _threadItemNotFoundSchema = /*#__PURE__*/ v.object({
|
|
39
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemNotFound')),
|
|
40
|
+
});
|
|
41
|
+
const _threadItemPostSchema = /*#__PURE__*/ v.object({
|
|
42
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemPost')),
|
|
43
|
+
hiddenByThreadgate: /*#__PURE__*/ v.boolean(),
|
|
44
|
+
moreParents: /*#__PURE__*/ v.boolean(),
|
|
45
|
+
moreReplies: /*#__PURE__*/ v.integer(),
|
|
46
|
+
mutedByViewer: /*#__PURE__*/ v.boolean(),
|
|
47
|
+
opThread: /*#__PURE__*/ v.boolean(),
|
|
48
|
+
get post() {
|
|
49
|
+
return AppBskyFeedDefs.postViewSchema;
|
|
50
|
+
},
|
|
51
|
+
});
|
|
27
52
|
const _trendViewSchema = /*#__PURE__*/ v.object({
|
|
28
53
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#trendView')),
|
|
29
54
|
get actors() {
|
|
@@ -48,6 +73,10 @@ export const skeletonSearchActorSchema = _skeletonSearchActorSchema;
|
|
|
48
73
|
export const skeletonSearchPostSchema = _skeletonSearchPostSchema;
|
|
49
74
|
export const skeletonSearchStarterPackSchema = _skeletonSearchStarterPackSchema;
|
|
50
75
|
export const skeletonTrendSchema = _skeletonTrendSchema;
|
|
76
|
+
export const threadItemBlockedSchema = _threadItemBlockedSchema;
|
|
77
|
+
export const threadItemNoUnauthenticatedSchema = _threadItemNoUnauthenticatedSchema;
|
|
78
|
+
export const threadItemNotFoundSchema = _threadItemNotFoundSchema;
|
|
79
|
+
export const threadItemPostSchema = _threadItemPostSchema;
|
|
51
80
|
export const trendViewSchema = _trendViewSchema;
|
|
52
81
|
export const trendingTopicSchema = _trendingTopicSchema;
|
|
53
82
|
//# sourceMappingURL=defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,gBAAgB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,gBAAgB,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AAEnD,MAAM,0BAA0B,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,6CAA6C,CAAC,CAAC;IACvG,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;CAChC,CAAC,CAAC;AACH,MAAM,yBAAyB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,4CAA4C,CAAC,CAAC;IACtG,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;CACxC,CAAC,CAAC;AACH,MAAM,gCAAgC,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/D,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,mDAAmD,CAAC,CA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oB,GAAG,qBAA6C,CAAC;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAmC,CAAC;AACnE,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAA2C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AppBskyUnspeccedDefs from './defs.js';
|
|
3
3
|
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
4
4
|
anchor: v.FormattedStringSchema<"at-uri">;
|
|
5
|
+
prioritizeFollowedUsers: v.OptionalSchema<v.BooleanSchema, false>;
|
|
5
6
|
}>, {
|
|
6
7
|
type: "lex";
|
|
7
8
|
schema: v.ObjectSchema<{
|
|
@@ -12,30 +13,18 @@ declare const _threadHiddenItemSchema: v.ObjectSchema<{
|
|
|
12
13
|
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem">, undefined>;
|
|
13
14
|
depth: v.IntegerSchema;
|
|
14
15
|
uri: v.FormattedStringSchema<"at-uri">;
|
|
15
|
-
readonly value: v.VariantSchema<readonly [
|
|
16
|
-
}>;
|
|
17
|
-
declare const _threadHiddenItemPostSchema: v.ObjectSchema<{
|
|
18
|
-
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost">, undefined>;
|
|
19
|
-
hiddenByThreadgate: v.BooleanSchema;
|
|
20
|
-
mutedByViewer: v.BooleanSchema;
|
|
21
|
-
readonly post: AppBskyFeedDefs.postViewSchema;
|
|
16
|
+
readonly value: v.VariantSchema<readonly [AppBskyUnspeccedDefs.threadItemPostSchema], boolean>;
|
|
22
17
|
}>;
|
|
23
18
|
type main$schematype = typeof _mainSchema;
|
|
24
19
|
type threadHiddenItem$schematype = typeof _threadHiddenItemSchema;
|
|
25
|
-
type threadHiddenItemPost$schematype = typeof _threadHiddenItemPostSchema;
|
|
26
20
|
export interface mainSchema extends main$schematype {
|
|
27
21
|
}
|
|
28
22
|
export interface threadHiddenItemSchema extends threadHiddenItem$schematype {
|
|
29
23
|
}
|
|
30
|
-
export interface threadHiddenItemPostSchema extends threadHiddenItemPost$schematype {
|
|
31
|
-
}
|
|
32
24
|
export declare const mainSchema: mainSchema;
|
|
33
25
|
export declare const threadHiddenItemSchema: threadHiddenItemSchema;
|
|
34
|
-
export declare const threadHiddenItemPostSchema: threadHiddenItemPostSchema;
|
|
35
26
|
export interface ThreadHiddenItem extends v.InferInput<typeof threadHiddenItemSchema> {
|
|
36
27
|
}
|
|
37
|
-
export interface ThreadHiddenItemPost extends v.InferInput<typeof threadHiddenItemPostSchema> {
|
|
38
|
-
}
|
|
39
28
|
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
40
29
|
}
|
|
41
30
|
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AppBskyUnspeccedDefs from './defs.js';
|
|
3
3
|
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadHiddenV2', {
|
|
4
4
|
params: /*#__PURE__*/ v.object({
|
|
5
5
|
anchor: /*#__PURE__*/ v.resourceUriString(),
|
|
6
|
+
prioritizeFollowedUsers: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
6
7
|
}),
|
|
7
8
|
output: {
|
|
8
9
|
type: 'lex',
|
|
@@ -19,19 +20,9 @@ const _threadHiddenItemSchema = /*#__PURE__*/ v.object({
|
|
|
19
20
|
depth: /*#__PURE__*/ v.integer(),
|
|
20
21
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
21
22
|
get value() {
|
|
22
|
-
return /*#__PURE__*/ v.variant([
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
const _threadHiddenItemPostSchema = /*#__PURE__*/ v.object({
|
|
26
|
-
$type: /*#__PURE__*/ v.optional(
|
|
27
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost')),
|
|
28
|
-
hiddenByThreadgate: /*#__PURE__*/ v.boolean(),
|
|
29
|
-
mutedByViewer: /*#__PURE__*/ v.boolean(),
|
|
30
|
-
get post() {
|
|
31
|
-
return AppBskyFeedDefs.postViewSchema;
|
|
23
|
+
return /*#__PURE__*/ v.variant([AppBskyUnspeccedDefs.threadItemPostSchema]);
|
|
32
24
|
},
|
|
33
25
|
});
|
|
34
26
|
export const mainSchema = _mainSchema;
|
|
35
27
|
export const threadHiddenItemSchema = _threadHiddenItemSchema;
|
|
36
|
-
export const threadHiddenItemPostSchema = _threadHiddenItemPostSchema;
|
|
37
28
|
//# sourceMappingURL=getPostThreadHiddenV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPostThreadHiddenV2.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getPostThreadHiddenV2.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,oBAAoB,MAAM,WAAW,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,0CAA0C,EAAE;IACrF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;QAC3C,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC;KACnF,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,IAAI,MAAM;gBACT,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;YACtD,CAAC;SACD,CAAC;KACF;CACD,CAAC,CAAC;AACH,MAAM,uBAAuB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,2DAA2D,CAAC,CACpF;IACD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IAChC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;IACxC,IAAI,KAAK;QACR,OAAO,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC7E,CAAC;CACD,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAiD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
2
|
import * as AppBskyFeedDefs from '../feed/defs.js';
|
|
3
|
+
import * as AppBskyUnspeccedDefs from './defs.js';
|
|
3
4
|
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
4
5
|
above: v.OptionalSchema<v.BooleanSchema, true>;
|
|
5
6
|
anchor: v.FormattedStringSchema<"at-uri">;
|
|
@@ -19,59 +20,18 @@ declare const _threadItemSchema: v.ObjectSchema<{
|
|
|
19
20
|
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.getPostThreadV2#threadItem">, undefined>;
|
|
20
21
|
depth: v.IntegerSchema;
|
|
21
22
|
uri: v.FormattedStringSchema<"at-uri">;
|
|
22
|
-
readonly value: v.VariantSchema<readonly [threadItemBlockedSchema, threadItemNoUnauthenticatedSchema, threadItemNotFoundSchema, threadItemPostSchema], boolean>;
|
|
23
|
-
}>;
|
|
24
|
-
declare const _threadItemBlockedSchema: v.ObjectSchema<{
|
|
25
|
-
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.getPostThreadV2#threadItemBlocked">, undefined>;
|
|
26
|
-
readonly author: AppBskyFeedDefs.blockedAuthorSchema;
|
|
27
|
-
}>;
|
|
28
|
-
declare const _threadItemNoUnauthenticatedSchema: v.ObjectSchema<{
|
|
29
|
-
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated">, undefined>;
|
|
30
|
-
}>;
|
|
31
|
-
declare const _threadItemNotFoundSchema: v.ObjectSchema<{
|
|
32
|
-
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.getPostThreadV2#threadItemNotFound">, undefined>;
|
|
33
|
-
}>;
|
|
34
|
-
declare const _threadItemPostSchema: v.ObjectSchema<{
|
|
35
|
-
$type: v.OptionalSchema<v.LiteralSchema<"app.bsky.unspecced.getPostThreadV2#threadItemPost">, undefined>;
|
|
36
|
-
moreParents: v.BooleanSchema;
|
|
37
|
-
moreReplies: v.IntegerSchema;
|
|
38
|
-
opThread: v.BooleanSchema;
|
|
39
|
-
readonly post: AppBskyFeedDefs.postViewSchema;
|
|
23
|
+
readonly value: v.VariantSchema<readonly [AppBskyUnspeccedDefs.threadItemBlockedSchema, AppBskyUnspeccedDefs.threadItemNoUnauthenticatedSchema, AppBskyUnspeccedDefs.threadItemNotFoundSchema, AppBskyUnspeccedDefs.threadItemPostSchema], boolean>;
|
|
40
24
|
}>;
|
|
41
25
|
type main$schematype = typeof _mainSchema;
|
|
42
26
|
type threadItem$schematype = typeof _threadItemSchema;
|
|
43
|
-
type threadItemBlocked$schematype = typeof _threadItemBlockedSchema;
|
|
44
|
-
type threadItemNoUnauthenticated$schematype = typeof _threadItemNoUnauthenticatedSchema;
|
|
45
|
-
type threadItemNotFound$schematype = typeof _threadItemNotFoundSchema;
|
|
46
|
-
type threadItemPost$schematype = typeof _threadItemPostSchema;
|
|
47
27
|
export interface mainSchema extends main$schematype {
|
|
48
28
|
}
|
|
49
29
|
export interface threadItemSchema extends threadItem$schematype {
|
|
50
30
|
}
|
|
51
|
-
export interface threadItemBlockedSchema extends threadItemBlocked$schematype {
|
|
52
|
-
}
|
|
53
|
-
export interface threadItemNoUnauthenticatedSchema extends threadItemNoUnauthenticated$schematype {
|
|
54
|
-
}
|
|
55
|
-
export interface threadItemNotFoundSchema extends threadItemNotFound$schematype {
|
|
56
|
-
}
|
|
57
|
-
export interface threadItemPostSchema extends threadItemPost$schematype {
|
|
58
|
-
}
|
|
59
31
|
export declare const mainSchema: mainSchema;
|
|
60
32
|
export declare const threadItemSchema: threadItemSchema;
|
|
61
|
-
export declare const threadItemBlockedSchema: threadItemBlockedSchema;
|
|
62
|
-
export declare const threadItemNoUnauthenticatedSchema: threadItemNoUnauthenticatedSchema;
|
|
63
|
-
export declare const threadItemNotFoundSchema: threadItemNotFoundSchema;
|
|
64
|
-
export declare const threadItemPostSchema: threadItemPostSchema;
|
|
65
33
|
export interface ThreadItem extends v.InferInput<typeof threadItemSchema> {
|
|
66
34
|
}
|
|
67
|
-
export interface ThreadItemBlocked extends v.InferInput<typeof threadItemBlockedSchema> {
|
|
68
|
-
}
|
|
69
|
-
export interface ThreadItemNoUnauthenticated extends v.InferInput<typeof threadItemNoUnauthenticatedSchema> {
|
|
70
|
-
}
|
|
71
|
-
export interface ThreadItemNotFound extends v.InferInput<typeof threadItemNotFoundSchema> {
|
|
72
|
-
}
|
|
73
|
-
export interface ThreadItemPost extends v.InferInput<typeof threadItemPostSchema> {
|
|
74
|
-
}
|
|
75
35
|
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
76
36
|
}
|
|
77
37
|
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
2
|
import * as AppBskyFeedDefs from '../feed/defs.js';
|
|
3
|
+
import * as AppBskyUnspeccedDefs from './defs.js';
|
|
3
4
|
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadV2', {
|
|
4
5
|
params: /*#__PURE__*/ v.object({
|
|
5
6
|
above: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
@@ -31,42 +32,13 @@ const _threadItemSchema = /*#__PURE__*/ v.object({
|
|
|
31
32
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
32
33
|
get value() {
|
|
33
34
|
return /*#__PURE__*/ v.variant([
|
|
34
|
-
threadItemBlockedSchema,
|
|
35
|
-
threadItemNoUnauthenticatedSchema,
|
|
36
|
-
threadItemNotFoundSchema,
|
|
37
|
-
threadItemPostSchema,
|
|
35
|
+
AppBskyUnspeccedDefs.threadItemBlockedSchema,
|
|
36
|
+
AppBskyUnspeccedDefs.threadItemNoUnauthenticatedSchema,
|
|
37
|
+
AppBskyUnspeccedDefs.threadItemNotFoundSchema,
|
|
38
|
+
AppBskyUnspeccedDefs.threadItemPostSchema,
|
|
38
39
|
]);
|
|
39
40
|
},
|
|
40
41
|
});
|
|
41
|
-
const _threadItemBlockedSchema = /*#__PURE__*/ v.object({
|
|
42
|
-
$type: /*#__PURE__*/ v.optional(
|
|
43
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemBlocked')),
|
|
44
|
-
get author() {
|
|
45
|
-
return AppBskyFeedDefs.blockedAuthorSchema;
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
const _threadItemNoUnauthenticatedSchema = /*#__PURE__*/ v.object({
|
|
49
|
-
$type: /*#__PURE__*/ v.optional(
|
|
50
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated')),
|
|
51
|
-
});
|
|
52
|
-
const _threadItemNotFoundSchema = /*#__PURE__*/ v.object({
|
|
53
|
-
$type: /*#__PURE__*/ v.optional(
|
|
54
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemNotFound')),
|
|
55
|
-
});
|
|
56
|
-
const _threadItemPostSchema = /*#__PURE__*/ v.object({
|
|
57
|
-
$type: /*#__PURE__*/ v.optional(
|
|
58
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemPost')),
|
|
59
|
-
moreParents: /*#__PURE__*/ v.boolean(),
|
|
60
|
-
moreReplies: /*#__PURE__*/ v.integer(),
|
|
61
|
-
opThread: /*#__PURE__*/ v.boolean(),
|
|
62
|
-
get post() {
|
|
63
|
-
return AppBskyFeedDefs.postViewSchema;
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
42
|
export const mainSchema = _mainSchema;
|
|
67
43
|
export const threadItemSchema = _threadItemSchema;
|
|
68
|
-
export const threadItemBlockedSchema = _threadItemBlockedSchema;
|
|
69
|
-
export const threadItemNoUnauthenticatedSchema = _threadItemNoUnauthenticatedSchema;
|
|
70
|
-
export const threadItemNotFoundSchema = _threadItemNotFoundSchema;
|
|
71
|
-
export const threadItemPostSchema = _threadItemPostSchema;
|
|
72
44
|
//# sourceMappingURL=getPostThreadV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPostThreadV2.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/app/bsky/unspecced/getPostThreadV2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"getPostThreadV2.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/app/bsky/unspecced/getPostThreadV2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B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EAAE;YAC3C,IAAI,MAAM;gBACT,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAChD,CAAC;YACD,IAAI,UAAU;gBACb,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;YACvE,CAAC;SACD,CAAC;KACF;CACD,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACzG,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IAChC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;IACxC,IAAI,KAAK;QACR,OAAO,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC;YAC9B,oBAAoB,CAAC,uBAAuB;YAC5C,oBAAoB,CAAC,iCAAiC;YACtD,oBAAoB,CAAC,wBAAwB;YAC7C,oBAAoB,CAAC,oBAAoB;SACzC,CAAC,CAAC;IACJ,CAAC;CACD,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAqC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs.js';
|
|
4
|
+
import * as AppBskyFeedDefs from '../feed/defs.js';
|
|
4
5
|
|
|
5
6
|
const _skeletonSearchActorSchema = /*#__PURE__*/ v.object({
|
|
6
7
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#skeletonSearchActor')),
|
|
@@ -27,6 +28,31 @@ const _skeletonTrendSchema = /*#__PURE__*/ v.object({
|
|
|
27
28
|
status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'hot' | (string & {})>()),
|
|
28
29
|
topic: /*#__PURE__*/ v.string(),
|
|
29
30
|
});
|
|
31
|
+
const _threadItemBlockedSchema = /*#__PURE__*/ v.object({
|
|
32
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemBlocked')),
|
|
33
|
+
get author() {
|
|
34
|
+
return AppBskyFeedDefs.blockedAuthorSchema;
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const _threadItemNoUnauthenticatedSchema = /*#__PURE__*/ v.object({
|
|
38
|
+
$type: /*#__PURE__*/ v.optional(
|
|
39
|
+
/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemNoUnauthenticated'),
|
|
40
|
+
),
|
|
41
|
+
});
|
|
42
|
+
const _threadItemNotFoundSchema = /*#__PURE__*/ v.object({
|
|
43
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemNotFound')),
|
|
44
|
+
});
|
|
45
|
+
const _threadItemPostSchema = /*#__PURE__*/ v.object({
|
|
46
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemPost')),
|
|
47
|
+
hiddenByThreadgate: /*#__PURE__*/ v.boolean(),
|
|
48
|
+
moreParents: /*#__PURE__*/ v.boolean(),
|
|
49
|
+
moreReplies: /*#__PURE__*/ v.integer(),
|
|
50
|
+
mutedByViewer: /*#__PURE__*/ v.boolean(),
|
|
51
|
+
opThread: /*#__PURE__*/ v.boolean(),
|
|
52
|
+
get post() {
|
|
53
|
+
return AppBskyFeedDefs.postViewSchema;
|
|
54
|
+
},
|
|
55
|
+
});
|
|
30
56
|
const _trendViewSchema = /*#__PURE__*/ v.object({
|
|
31
57
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#trendView')),
|
|
32
58
|
get actors() {
|
|
@@ -52,6 +78,10 @@ type skeletonSearchActor$schematype = typeof _skeletonSearchActorSchema;
|
|
|
52
78
|
type skeletonSearchPost$schematype = typeof _skeletonSearchPostSchema;
|
|
53
79
|
type skeletonSearchStarterPack$schematype = typeof _skeletonSearchStarterPackSchema;
|
|
54
80
|
type skeletonTrend$schematype = typeof _skeletonTrendSchema;
|
|
81
|
+
type threadItemBlocked$schematype = typeof _threadItemBlockedSchema;
|
|
82
|
+
type threadItemNoUnauthenticated$schematype = typeof _threadItemNoUnauthenticatedSchema;
|
|
83
|
+
type threadItemNotFound$schematype = typeof _threadItemNotFoundSchema;
|
|
84
|
+
type threadItemPost$schematype = typeof _threadItemPostSchema;
|
|
55
85
|
type trendView$schematype = typeof _trendViewSchema;
|
|
56
86
|
type trendingTopic$schematype = typeof _trendingTopicSchema;
|
|
57
87
|
|
|
@@ -59,6 +89,10 @@ export interface skeletonSearchActorSchema extends skeletonSearchActor$schematyp
|
|
|
59
89
|
export interface skeletonSearchPostSchema extends skeletonSearchPost$schematype {}
|
|
60
90
|
export interface skeletonSearchStarterPackSchema extends skeletonSearchStarterPack$schematype {}
|
|
61
91
|
export interface skeletonTrendSchema extends skeletonTrend$schematype {}
|
|
92
|
+
export interface threadItemBlockedSchema extends threadItemBlocked$schematype {}
|
|
93
|
+
export interface threadItemNoUnauthenticatedSchema extends threadItemNoUnauthenticated$schematype {}
|
|
94
|
+
export interface threadItemNotFoundSchema extends threadItemNotFound$schematype {}
|
|
95
|
+
export interface threadItemPostSchema extends threadItemPost$schematype {}
|
|
62
96
|
export interface trendViewSchema extends trendView$schematype {}
|
|
63
97
|
export interface trendingTopicSchema extends trendingTopic$schematype {}
|
|
64
98
|
|
|
@@ -67,6 +101,11 @@ export const skeletonSearchPostSchema = _skeletonSearchPostSchema as skeletonSea
|
|
|
67
101
|
export const skeletonSearchStarterPackSchema =
|
|
68
102
|
_skeletonSearchStarterPackSchema as skeletonSearchStarterPackSchema;
|
|
69
103
|
export const skeletonTrendSchema = _skeletonTrendSchema as skeletonTrendSchema;
|
|
104
|
+
export const threadItemBlockedSchema = _threadItemBlockedSchema as threadItemBlockedSchema;
|
|
105
|
+
export const threadItemNoUnauthenticatedSchema =
|
|
106
|
+
_threadItemNoUnauthenticatedSchema as threadItemNoUnauthenticatedSchema;
|
|
107
|
+
export const threadItemNotFoundSchema = _threadItemNotFoundSchema as threadItemNotFoundSchema;
|
|
108
|
+
export const threadItemPostSchema = _threadItemPostSchema as threadItemPostSchema;
|
|
70
109
|
export const trendViewSchema = _trendViewSchema as trendViewSchema;
|
|
71
110
|
export const trendingTopicSchema = _trendingTopicSchema as trendingTopicSchema;
|
|
72
111
|
|
|
@@ -74,5 +113,9 @@ export interface SkeletonSearchActor extends v.InferInput<typeof skeletonSearchA
|
|
|
74
113
|
export interface SkeletonSearchPost extends v.InferInput<typeof skeletonSearchPostSchema> {}
|
|
75
114
|
export interface SkeletonSearchStarterPack extends v.InferInput<typeof skeletonSearchStarterPackSchema> {}
|
|
76
115
|
export interface SkeletonTrend extends v.InferInput<typeof skeletonTrendSchema> {}
|
|
116
|
+
export interface ThreadItemBlocked extends v.InferInput<typeof threadItemBlockedSchema> {}
|
|
117
|
+
export interface ThreadItemNoUnauthenticated extends v.InferInput<typeof threadItemNoUnauthenticatedSchema> {}
|
|
118
|
+
export interface ThreadItemNotFound extends v.InferInput<typeof threadItemNotFoundSchema> {}
|
|
119
|
+
export interface ThreadItemPost extends v.InferInput<typeof threadItemPostSchema> {}
|
|
77
120
|
export interface TrendView extends v.InferInput<typeof trendViewSchema> {}
|
|
78
121
|
export interface TrendingTopic extends v.InferInput<typeof trendingTopicSchema> {}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
-
import * as
|
|
4
|
+
import * as AppBskyUnspeccedDefs from './defs.js';
|
|
5
5
|
|
|
6
6
|
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadHiddenV2', {
|
|
7
7
|
params: /*#__PURE__*/ v.object({
|
|
8
8
|
anchor: /*#__PURE__*/ v.resourceUriString(),
|
|
9
|
+
prioritizeFollowedUsers: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
9
10
|
}),
|
|
10
11
|
output: {
|
|
11
12
|
type: 'lex',
|
|
@@ -23,34 +24,20 @@ const _threadHiddenItemSchema = /*#__PURE__*/ v.object({
|
|
|
23
24
|
depth: /*#__PURE__*/ v.integer(),
|
|
24
25
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
25
26
|
get value() {
|
|
26
|
-
return /*#__PURE__*/ v.variant([
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
const _threadHiddenItemPostSchema = /*#__PURE__*/ v.object({
|
|
30
|
-
$type: /*#__PURE__*/ v.optional(
|
|
31
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost'),
|
|
32
|
-
),
|
|
33
|
-
hiddenByThreadgate: /*#__PURE__*/ v.boolean(),
|
|
34
|
-
mutedByViewer: /*#__PURE__*/ v.boolean(),
|
|
35
|
-
get post() {
|
|
36
|
-
return AppBskyFeedDefs.postViewSchema;
|
|
27
|
+
return /*#__PURE__*/ v.variant([AppBskyUnspeccedDefs.threadItemPostSchema]);
|
|
37
28
|
},
|
|
38
29
|
});
|
|
39
30
|
|
|
40
31
|
type main$schematype = typeof _mainSchema;
|
|
41
32
|
type threadHiddenItem$schematype = typeof _threadHiddenItemSchema;
|
|
42
|
-
type threadHiddenItemPost$schematype = typeof _threadHiddenItemPostSchema;
|
|
43
33
|
|
|
44
34
|
export interface mainSchema extends main$schematype {}
|
|
45
35
|
export interface threadHiddenItemSchema extends threadHiddenItem$schematype {}
|
|
46
|
-
export interface threadHiddenItemPostSchema extends threadHiddenItemPost$schematype {}
|
|
47
36
|
|
|
48
37
|
export const mainSchema = _mainSchema as mainSchema;
|
|
49
38
|
export const threadHiddenItemSchema = _threadHiddenItemSchema as threadHiddenItemSchema;
|
|
50
|
-
export const threadHiddenItemPostSchema = _threadHiddenItemPostSchema as threadHiddenItemPostSchema;
|
|
51
39
|
|
|
52
40
|
export interface ThreadHiddenItem extends v.InferInput<typeof threadHiddenItemSchema> {}
|
|
53
|
-
export interface ThreadHiddenItemPost extends v.InferInput<typeof threadHiddenItemPostSchema> {}
|
|
54
41
|
|
|
55
42
|
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
56
43
|
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
@@ -2,6 +2,7 @@ import type {} from '@atcute/lexicons';
|
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
import type {} from '@atcute/lexicons/ambient';
|
|
4
4
|
import * as AppBskyFeedDefs from '../feed/defs.js';
|
|
5
|
+
import * as AppBskyUnspeccedDefs from './defs.js';
|
|
5
6
|
|
|
6
7
|
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadV2', {
|
|
7
8
|
params: /*#__PURE__*/ v.object({
|
|
@@ -40,70 +41,24 @@ const _threadItemSchema = /*#__PURE__*/ v.object({
|
|
|
40
41
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
41
42
|
get value() {
|
|
42
43
|
return /*#__PURE__*/ v.variant([
|
|
43
|
-
threadItemBlockedSchema,
|
|
44
|
-
threadItemNoUnauthenticatedSchema,
|
|
45
|
-
threadItemNotFoundSchema,
|
|
46
|
-
threadItemPostSchema,
|
|
44
|
+
AppBskyUnspeccedDefs.threadItemBlockedSchema,
|
|
45
|
+
AppBskyUnspeccedDefs.threadItemNoUnauthenticatedSchema,
|
|
46
|
+
AppBskyUnspeccedDefs.threadItemNotFoundSchema,
|
|
47
|
+
AppBskyUnspeccedDefs.threadItemPostSchema,
|
|
47
48
|
]);
|
|
48
49
|
},
|
|
49
50
|
});
|
|
50
|
-
const _threadItemBlockedSchema = /*#__PURE__*/ v.object({
|
|
51
|
-
$type: /*#__PURE__*/ v.optional(
|
|
52
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemBlocked'),
|
|
53
|
-
),
|
|
54
|
-
get author() {
|
|
55
|
-
return AppBskyFeedDefs.blockedAuthorSchema;
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
const _threadItemNoUnauthenticatedSchema = /*#__PURE__*/ v.object({
|
|
59
|
-
$type: /*#__PURE__*/ v.optional(
|
|
60
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated'),
|
|
61
|
-
),
|
|
62
|
-
});
|
|
63
|
-
const _threadItemNotFoundSchema = /*#__PURE__*/ v.object({
|
|
64
|
-
$type: /*#__PURE__*/ v.optional(
|
|
65
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemNotFound'),
|
|
66
|
-
),
|
|
67
|
-
});
|
|
68
|
-
const _threadItemPostSchema = /*#__PURE__*/ v.object({
|
|
69
|
-
$type: /*#__PURE__*/ v.optional(
|
|
70
|
-
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemPost'),
|
|
71
|
-
),
|
|
72
|
-
moreParents: /*#__PURE__*/ v.boolean(),
|
|
73
|
-
moreReplies: /*#__PURE__*/ v.integer(),
|
|
74
|
-
opThread: /*#__PURE__*/ v.boolean(),
|
|
75
|
-
get post() {
|
|
76
|
-
return AppBskyFeedDefs.postViewSchema;
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
51
|
|
|
80
52
|
type main$schematype = typeof _mainSchema;
|
|
81
53
|
type threadItem$schematype = typeof _threadItemSchema;
|
|
82
|
-
type threadItemBlocked$schematype = typeof _threadItemBlockedSchema;
|
|
83
|
-
type threadItemNoUnauthenticated$schematype = typeof _threadItemNoUnauthenticatedSchema;
|
|
84
|
-
type threadItemNotFound$schematype = typeof _threadItemNotFoundSchema;
|
|
85
|
-
type threadItemPost$schematype = typeof _threadItemPostSchema;
|
|
86
54
|
|
|
87
55
|
export interface mainSchema extends main$schematype {}
|
|
88
56
|
export interface threadItemSchema extends threadItem$schematype {}
|
|
89
|
-
export interface threadItemBlockedSchema extends threadItemBlocked$schematype {}
|
|
90
|
-
export interface threadItemNoUnauthenticatedSchema extends threadItemNoUnauthenticated$schematype {}
|
|
91
|
-
export interface threadItemNotFoundSchema extends threadItemNotFound$schematype {}
|
|
92
|
-
export interface threadItemPostSchema extends threadItemPost$schematype {}
|
|
93
57
|
|
|
94
58
|
export const mainSchema = _mainSchema as mainSchema;
|
|
95
59
|
export const threadItemSchema = _threadItemSchema as threadItemSchema;
|
|
96
|
-
export const threadItemBlockedSchema = _threadItemBlockedSchema as threadItemBlockedSchema;
|
|
97
|
-
export const threadItemNoUnauthenticatedSchema =
|
|
98
|
-
_threadItemNoUnauthenticatedSchema as threadItemNoUnauthenticatedSchema;
|
|
99
|
-
export const threadItemNotFoundSchema = _threadItemNotFoundSchema as threadItemNotFoundSchema;
|
|
100
|
-
export const threadItemPostSchema = _threadItemPostSchema as threadItemPostSchema;
|
|
101
60
|
|
|
102
61
|
export interface ThreadItem extends v.InferInput<typeof threadItemSchema> {}
|
|
103
|
-
export interface ThreadItemBlocked extends v.InferInput<typeof threadItemBlockedSchema> {}
|
|
104
|
-
export interface ThreadItemNoUnauthenticated extends v.InferInput<typeof threadItemNoUnauthenticatedSchema> {}
|
|
105
|
-
export interface ThreadItemNotFound extends v.InferInput<typeof threadItemNotFoundSchema> {}
|
|
106
|
-
export interface ThreadItemPost extends v.InferInput<typeof threadItemPostSchema> {}
|
|
107
62
|
|
|
108
63
|
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
109
64
|
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/bluesky",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"description": "Bluesky (app.bsky.* and chat.bsky.*) schema definitions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atcute",
|
|
8
8
|
"atproto",
|
|
9
9
|
"bluesky"
|
|
10
10
|
],
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "0BSD",
|
|
12
12
|
"repository": {
|
|
13
13
|
"url": "https://github.com/mary-ext/atcute",
|
|
14
14
|
"directory": "packages/definitions/bluesky"
|