@atcute/bluesky 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +12 -15
- package/dist/lexicons/index.d.ts +3 -1
- package/dist/lexicons/index.js +3 -1
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/app/bsky/notification/defs.d.ts +56 -0
- package/dist/lexicons/types/app/bsky/notification/defs.js +62 -0
- package/dist/lexicons/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/lexicons/types/app/bsky/notification/getPreferences.d.ts +22 -0
- package/dist/lexicons/types/app/bsky/notification/getPreferences.js +15 -0
- package/dist/lexicons/types/app/bsky/notification/getPreferences.js.map +1 -0
- package/dist/lexicons/types/app/bsky/notification/listNotifications.d.ts +1 -1
- package/dist/lexicons/types/app/bsky/notification/putPreferencesV2.d.ts +41 -0
- package/dist/lexicons/types/app/bsky/notification/putPreferencesV2.js +59 -0
- package/dist/lexicons/types/app/bsky/notification/putPreferencesV2.js.map +1 -0
- 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/getPostThreadOtherV2.d.ts +37 -0
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.js +28 -0
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.js.map +1 -0
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.d.ts +3 -43
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.js +6 -34
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadV2.js.map +1 -1
- package/lib/lexicons/index.ts +3 -1
- package/lib/lexicons/types/app/bsky/notification/defs.ts +74 -0
- package/lib/lexicons/types/app/bsky/notification/getPreferences.ts +31 -0
- package/lib/lexicons/types/app/bsky/notification/putPreferencesV2.ts +76 -0
- package/lib/lexicons/types/app/bsky/unspecced/defs.ts +43 -0
- package/lib/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.ts +49 -0
- package/lib/lexicons/types/app/bsky/unspecced/getPostThreadV2.ts +6 -51
- package/package.json +5 -5
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts +0 -48
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.js +0 -37
- package/dist/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +0 -1
- package/lib/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.ts +0 -62
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPostThreadOtherV2.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/app/bsky/unspecced/getPostThreadOtherV2.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,yCAAyC,EAAE;IACpF,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,gBAAgB,CAAC,CAAC;YAChD,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;IAC9B,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,oDAAoD,CAAC,CAC7E;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,gBAAgB,GAAG,iBAAqC,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">;
|
|
@@ -10,7 +11,7 @@ declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
|
10
11
|
}>, {
|
|
11
12
|
type: "lex";
|
|
12
13
|
schema: v.ObjectSchema<{
|
|
13
|
-
|
|
14
|
+
hasOtherReplies: v.BooleanSchema;
|
|
14
15
|
readonly thread: v.ArraySchema<threadItemSchema>;
|
|
15
16
|
readonly threadgate: v.OptionalSchema<AppBskyFeedDefs.threadgateViewSchema, undefined>;
|
|
16
17
|
}>;
|
|
@@ -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),
|
|
@@ -15,7 +16,7 @@ const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadV2',
|
|
|
15
16
|
output: {
|
|
16
17
|
type: 'lex',
|
|
17
18
|
schema: /*#__PURE__*/ v.object({
|
|
18
|
-
|
|
19
|
+
hasOtherReplies: /*#__PURE__*/ v.boolean(),
|
|
19
20
|
get thread() {
|
|
20
21
|
return /*#__PURE__*/ v.array(threadItemSchema);
|
|
21
22
|
},
|
|
@@ -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,CAAC;AAElD,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,oBAAoB,MAAM,WAAW,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAoC,EAAE;IAC/E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC;QAChE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;QAC3C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAC3F,CAAC,CACD;QACD,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QACxC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAC5F,EAAE,CACF;QACD,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC;QACnF,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC7B,aAAa,CAAC,CAAC,CAAC,MAAM,EAA+C,EACrE,QAAQ,CACR;KACD,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;YAC1C,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"}
|
package/lib/lexicons/index.ts
CHANGED
|
@@ -72,16 +72,18 @@ export * as AppBskyLabelerDefs from './types/app/bsky/labeler/defs.js';
|
|
|
72
72
|
export * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js';
|
|
73
73
|
export * as AppBskyLabelerService from './types/app/bsky/labeler/service.js';
|
|
74
74
|
export * as AppBskyNotificationDefs from './types/app/bsky/notification/defs.js';
|
|
75
|
+
export * as AppBskyNotificationGetPreferences from './types/app/bsky/notification/getPreferences.js';
|
|
75
76
|
export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount.js';
|
|
76
77
|
export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications.js';
|
|
77
78
|
export * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js';
|
|
79
|
+
export * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js';
|
|
78
80
|
export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js';
|
|
79
81
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js';
|
|
80
82
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js';
|
|
81
83
|
export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js';
|
|
82
84
|
export * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js';
|
|
83
85
|
export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js';
|
|
84
|
-
export * as
|
|
86
|
+
export * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecced/getPostThreadOtherV2.js';
|
|
85
87
|
export * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.js';
|
|
86
88
|
export * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js';
|
|
87
89
|
export * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js';
|
|
@@ -1,14 +1,88 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
|
|
4
|
+
const _chatPreferenceSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.notification.defs#chatPreference')),
|
|
6
|
+
filter: /*#__PURE__*/ v.string<'accepted' | 'all' | (string & {})>(),
|
|
7
|
+
push: /*#__PURE__*/ v.boolean(),
|
|
8
|
+
});
|
|
9
|
+
const _filterablePreferenceSchema = /*#__PURE__*/ v.object({
|
|
10
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.notification.defs#filterablePreference')),
|
|
11
|
+
filter: /*#__PURE__*/ v.string<'all' | 'follows' | (string & {})>(),
|
|
12
|
+
list: /*#__PURE__*/ v.boolean(),
|
|
13
|
+
push: /*#__PURE__*/ v.boolean(),
|
|
14
|
+
});
|
|
15
|
+
const _preferenceSchema = /*#__PURE__*/ v.object({
|
|
16
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.notification.defs#preference')),
|
|
17
|
+
list: /*#__PURE__*/ v.boolean(),
|
|
18
|
+
push: /*#__PURE__*/ v.boolean(),
|
|
19
|
+
});
|
|
20
|
+
const _preferencesSchema = /*#__PURE__*/ v.object({
|
|
21
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.notification.defs#preferences')),
|
|
22
|
+
get chat() {
|
|
23
|
+
return chatPreferenceSchema;
|
|
24
|
+
},
|
|
25
|
+
get follow() {
|
|
26
|
+
return filterablePreferenceSchema;
|
|
27
|
+
},
|
|
28
|
+
get like() {
|
|
29
|
+
return filterablePreferenceSchema;
|
|
30
|
+
},
|
|
31
|
+
get likeViaRepost() {
|
|
32
|
+
return filterablePreferenceSchema;
|
|
33
|
+
},
|
|
34
|
+
get mention() {
|
|
35
|
+
return filterablePreferenceSchema;
|
|
36
|
+
},
|
|
37
|
+
get quote() {
|
|
38
|
+
return filterablePreferenceSchema;
|
|
39
|
+
},
|
|
40
|
+
get reply() {
|
|
41
|
+
return filterablePreferenceSchema;
|
|
42
|
+
},
|
|
43
|
+
get repost() {
|
|
44
|
+
return filterablePreferenceSchema;
|
|
45
|
+
},
|
|
46
|
+
get repostViaRepost() {
|
|
47
|
+
return filterablePreferenceSchema;
|
|
48
|
+
},
|
|
49
|
+
get starterpackJoined() {
|
|
50
|
+
return preferenceSchema;
|
|
51
|
+
},
|
|
52
|
+
get subscribedPost() {
|
|
53
|
+
return preferenceSchema;
|
|
54
|
+
},
|
|
55
|
+
get unverified() {
|
|
56
|
+
return preferenceSchema;
|
|
57
|
+
},
|
|
58
|
+
get verified() {
|
|
59
|
+
return preferenceSchema;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
4
62
|
const _recordDeletedSchema = /*#__PURE__*/ v.object({
|
|
5
63
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.notification.defs#recordDeleted')),
|
|
6
64
|
});
|
|
7
65
|
|
|
66
|
+
type chatPreference$schematype = typeof _chatPreferenceSchema;
|
|
67
|
+
type filterablePreference$schematype = typeof _filterablePreferenceSchema;
|
|
68
|
+
type preference$schematype = typeof _preferenceSchema;
|
|
69
|
+
type preferences$schematype = typeof _preferencesSchema;
|
|
8
70
|
type recordDeleted$schematype = typeof _recordDeletedSchema;
|
|
9
71
|
|
|
72
|
+
export interface chatPreferenceSchema extends chatPreference$schematype {}
|
|
73
|
+
export interface filterablePreferenceSchema extends filterablePreference$schematype {}
|
|
74
|
+
export interface preferenceSchema extends preference$schematype {}
|
|
75
|
+
export interface preferencesSchema extends preferences$schematype {}
|
|
10
76
|
export interface recordDeletedSchema extends recordDeleted$schematype {}
|
|
11
77
|
|
|
78
|
+
export const chatPreferenceSchema = _chatPreferenceSchema as chatPreferenceSchema;
|
|
79
|
+
export const filterablePreferenceSchema = _filterablePreferenceSchema as filterablePreferenceSchema;
|
|
80
|
+
export const preferenceSchema = _preferenceSchema as preferenceSchema;
|
|
81
|
+
export const preferencesSchema = _preferencesSchema as preferencesSchema;
|
|
12
82
|
export const recordDeletedSchema = _recordDeletedSchema as recordDeletedSchema;
|
|
13
83
|
|
|
84
|
+
export interface ChatPreference extends v.InferInput<typeof chatPreferenceSchema> {}
|
|
85
|
+
export interface FilterablePreference extends v.InferInput<typeof filterablePreferenceSchema> {}
|
|
86
|
+
export interface Preference extends v.InferInput<typeof preferenceSchema> {}
|
|
87
|
+
export interface Preferences extends v.InferInput<typeof preferencesSchema> {}
|
|
14
88
|
export interface RecordDeleted extends v.InferInput<typeof recordDeletedSchema> {}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as AppBskyNotificationDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.notification.getPreferences', {
|
|
7
|
+
params: /*#__PURE__*/ v.object({}),
|
|
8
|
+
output: {
|
|
9
|
+
type: 'lex',
|
|
10
|
+
schema: /*#__PURE__*/ v.object({
|
|
11
|
+
get preferences() {
|
|
12
|
+
return AppBskyNotificationDefs.preferencesSchema;
|
|
13
|
+
},
|
|
14
|
+
}),
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
type main$schematype = typeof _mainSchema;
|
|
19
|
+
|
|
20
|
+
export interface mainSchema extends main$schematype {}
|
|
21
|
+
|
|
22
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
23
|
+
|
|
24
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
25
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
26
|
+
|
|
27
|
+
declare module '@atcute/lexicons/ambient' {
|
|
28
|
+
interface XRPCQueries {
|
|
29
|
+
'app.bsky.notification.getPreferences': mainSchema;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as AppBskyNotificationDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.notification.putPreferencesV2', {
|
|
7
|
+
params: null,
|
|
8
|
+
input: {
|
|
9
|
+
type: 'lex',
|
|
10
|
+
schema: /*#__PURE__*/ v.object({
|
|
11
|
+
get chat() {
|
|
12
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.chatPreferenceSchema);
|
|
13
|
+
},
|
|
14
|
+
get follow() {
|
|
15
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
16
|
+
},
|
|
17
|
+
get like() {
|
|
18
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
19
|
+
},
|
|
20
|
+
get likeViaRepost() {
|
|
21
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
22
|
+
},
|
|
23
|
+
get mention() {
|
|
24
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
25
|
+
},
|
|
26
|
+
get quote() {
|
|
27
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
28
|
+
},
|
|
29
|
+
get reply() {
|
|
30
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
31
|
+
},
|
|
32
|
+
get repost() {
|
|
33
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
34
|
+
},
|
|
35
|
+
get repostViaRepost() {
|
|
36
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.filterablePreferenceSchema);
|
|
37
|
+
},
|
|
38
|
+
get starterpackJoined() {
|
|
39
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.preferenceSchema);
|
|
40
|
+
},
|
|
41
|
+
get subscribedPost() {
|
|
42
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.preferenceSchema);
|
|
43
|
+
},
|
|
44
|
+
get unverified() {
|
|
45
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.preferenceSchema);
|
|
46
|
+
},
|
|
47
|
+
get verified() {
|
|
48
|
+
return /*#__PURE__*/ v.optional(AppBskyNotificationDefs.preferenceSchema);
|
|
49
|
+
},
|
|
50
|
+
}),
|
|
51
|
+
},
|
|
52
|
+
output: {
|
|
53
|
+
type: 'lex',
|
|
54
|
+
schema: /*#__PURE__*/ v.object({
|
|
55
|
+
get preferences() {
|
|
56
|
+
return AppBskyNotificationDefs.preferencesSchema;
|
|
57
|
+
},
|
|
58
|
+
}),
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
type main$schematype = typeof _mainSchema;
|
|
63
|
+
|
|
64
|
+
export interface mainSchema extends main$schematype {}
|
|
65
|
+
|
|
66
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
67
|
+
|
|
68
|
+
export interface $params {}
|
|
69
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
70
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
71
|
+
|
|
72
|
+
declare module '@atcute/lexicons/ambient' {
|
|
73
|
+
interface XRPCProcedures {
|
|
74
|
+
'app.bsky.notification.putPreferencesV2': mainSchema;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -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> {}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as AppBskyUnspeccedDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadOtherV2', {
|
|
7
|
+
params: /*#__PURE__*/ v.object({
|
|
8
|
+
anchor: /*#__PURE__*/ v.resourceUriString(),
|
|
9
|
+
prioritizeFollowedUsers: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
10
|
+
}),
|
|
11
|
+
output: {
|
|
12
|
+
type: 'lex',
|
|
13
|
+
schema: /*#__PURE__*/ v.object({
|
|
14
|
+
get thread() {
|
|
15
|
+
return /*#__PURE__*/ v.array(threadItemSchema);
|
|
16
|
+
},
|
|
17
|
+
}),
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const _threadItemSchema = /*#__PURE__*/ v.object({
|
|
21
|
+
$type: /*#__PURE__*/ v.optional(
|
|
22
|
+
/*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadOtherV2#threadItem'),
|
|
23
|
+
),
|
|
24
|
+
depth: /*#__PURE__*/ v.integer(),
|
|
25
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
26
|
+
get value() {
|
|
27
|
+
return /*#__PURE__*/ v.variant([AppBskyUnspeccedDefs.threadItemPostSchema]);
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
type main$schematype = typeof _mainSchema;
|
|
32
|
+
type threadItem$schematype = typeof _threadItemSchema;
|
|
33
|
+
|
|
34
|
+
export interface mainSchema extends main$schematype {}
|
|
35
|
+
export interface threadItemSchema extends threadItem$schematype {}
|
|
36
|
+
|
|
37
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
38
|
+
export const threadItemSchema = _threadItemSchema as threadItemSchema;
|
|
39
|
+
|
|
40
|
+
export interface ThreadItem extends v.InferInput<typeof threadItemSchema> {}
|
|
41
|
+
|
|
42
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
43
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
44
|
+
|
|
45
|
+
declare module '@atcute/lexicons/ambient' {
|
|
46
|
+
interface XRPCQueries {
|
|
47
|
+
'app.bsky.unspecced.getPostThreadOtherV2': mainSchema;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -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({
|
|
@@ -24,7 +25,7 @@ const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadV2',
|
|
|
24
25
|
output: {
|
|
25
26
|
type: 'lex',
|
|
26
27
|
schema: /*#__PURE__*/ v.object({
|
|
27
|
-
|
|
28
|
+
hasOtherReplies: /*#__PURE__*/ v.boolean(),
|
|
28
29
|
get thread() {
|
|
29
30
|
return /*#__PURE__*/ v.array(threadItemSchema);
|
|
30
31
|
},
|
|
@@ -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.2",
|
|
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"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@atcute/bluesky": "file:",
|
|
33
|
-
"@atproto/api": "^0.15.
|
|
34
|
-
"vitest": "^3.1.
|
|
35
|
-
"@atcute/lex-cli": "^2.1.
|
|
33
|
+
"@atproto/api": "^0.15.12",
|
|
34
|
+
"vitest": "^3.1.4",
|
|
35
|
+
"@atcute/lex-cli": "^2.1.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc --project tsconfig.build.json",
|