@atcute/bluesky 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lexicons/index.d.ts +3 -1
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +3 -1
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/app/bsky/embed/external.d.ts +72 -5
- package/dist/lexicons/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/lexicons/types/app/bsky/embed/external.js +75 -5
- package/dist/lexicons/types/app/bsky/embed/external.js.map +1 -1
- package/dist/lexicons/types/app/bsky/embed/getEmbedExternalView.d.ts +49 -0
- package/dist/lexicons/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -0
- package/dist/lexicons/types/app/bsky/embed/getEmbedExternalView.js +45 -0
- package/dist/lexicons/types/app/bsky/embed/getEmbedExternalView.js.map +1 -0
- package/dist/lexicons/types/chat/bsky/actor/getStatus.d.ts +30 -0
- package/dist/lexicons/types/chat/bsky/actor/getStatus.d.ts.map +1 -0
- package/dist/lexicons/types/chat/bsky/actor/getStatus.js +20 -0
- package/dist/lexicons/types/chat/bsky/actor/getStatus.js.map +1 -0
- package/dist/lexicons/types/chat/bsky/convo/defs.d.ts +7 -0
- package/dist/lexicons/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/lexicons/types/chat/bsky/convo/defs.js +7 -0
- package/dist/lexicons/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/lexicons/types/chat/bsky/convo/listConvoRequests.d.ts +1 -1
- package/dist/lexicons/types/chat/bsky/convo/listConvoRequests.js +1 -1
- package/dist/lexicons/types/chat/bsky/convo/listConvoRequests.js.map +1 -1
- package/dist/lexicons/types/chat/bsky/group/defs.d.ts +30 -0
- package/dist/lexicons/types/chat/bsky/group/defs.d.ts.map +1 -1
- package/dist/lexicons/types/chat/bsky/group/defs.js +28 -0
- package/dist/lexicons/types/chat/bsky/group/defs.js.map +1 -1
- package/dist/lexicons/types/chat/bsky/group/{getJoinLinkPreview.d.ts → getJoinLinkPreviews.d.ts} +9 -5
- package/dist/lexicons/types/chat/bsky/group/getJoinLinkPreviews.d.ts.map +1 -0
- package/dist/lexicons/types/chat/bsky/group/getJoinLinkPreviews.js +23 -0
- package/dist/lexicons/types/chat/bsky/group/getJoinLinkPreviews.js.map +1 -0
- package/dist/limits.d.ts +11 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +5 -0
- package/dist/limits.js.map +1 -1
- package/lib/lexicons/index.ts +3 -1
- package/lib/lexicons/types/app/bsky/embed/external.ts +85 -5
- package/lib/lexicons/types/app/bsky/embed/getEmbedExternalView.ts +62 -0
- package/lib/lexicons/types/chat/bsky/actor/getStatus.ts +36 -0
- package/lib/lexicons/types/chat/bsky/convo/defs.ts +7 -0
- package/lib/lexicons/types/chat/bsky/convo/listConvoRequests.ts +1 -1
- package/lib/lexicons/types/chat/bsky/group/defs.ts +34 -0
- package/lib/lexicons/types/chat/bsky/group/{getJoinLinkPreview.ts → getJoinLinkPreviews.ts} +11 -5
- package/lib/limits.ts +5 -0
- package/package.json +1 -1
- package/dist/lexicons/types/chat/bsky/group/getJoinLinkPreview.d.ts.map +0 -1
- package/dist/lexicons/types/chat/bsky/group/getJoinLinkPreview.js +0 -17
- package/dist/lexicons/types/chat/bsky/group/getJoinLinkPreview.js.map +0 -1
|
@@ -1,14 +1,32 @@
|
|
|
1
|
+
import * as ComAtprotoLabelDefs from '@atcute/atproto/types/label/defs';
|
|
1
2
|
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
2
3
|
import type {} from '@atcute/lexicons';
|
|
3
4
|
import * as v from '@atcute/lexicons/validations';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import * as AppBskyActorDefs from '../actor/defs.ts';
|
|
7
|
+
|
|
8
|
+
const _colorRGBSchema = /*#__PURE__*/ v.object({
|
|
9
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#colorRGB')),
|
|
10
|
+
/**
|
|
11
|
+
* @minimum 0
|
|
12
|
+
* @maximum 255
|
|
13
|
+
*/
|
|
14
|
+
b: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 255)]),
|
|
15
|
+
/**
|
|
16
|
+
* @minimum 0
|
|
17
|
+
* @maximum 255
|
|
18
|
+
*/
|
|
19
|
+
g: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 255)]),
|
|
7
20
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
21
|
+
* @minimum 0
|
|
22
|
+
* @maximum 255
|
|
10
23
|
*/
|
|
11
|
-
|
|
24
|
+
r: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(0, 255)]),
|
|
25
|
+
});
|
|
26
|
+
const _externalSchema = /*#__PURE__*/ v.object({
|
|
27
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#external')),
|
|
28
|
+
/** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */
|
|
29
|
+
get associatedRefs() {
|
|
12
30
|
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoRepoStrongRef.mainSchema));
|
|
13
31
|
},
|
|
14
32
|
description: /*#__PURE__*/ v.string(),
|
|
@@ -39,28 +57,90 @@ const _viewSchema = /*#__PURE__*/ v.object({
|
|
|
39
57
|
});
|
|
40
58
|
const _viewExternalSchema = /*#__PURE__*/ v.object({
|
|
41
59
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#viewExternal')),
|
|
60
|
+
/** Profiles of the owners of the Atmosphere records that backed this view. */
|
|
61
|
+
get associatedProfiles() {
|
|
62
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyActorDefs.profileViewBasicSchema));
|
|
63
|
+
},
|
|
64
|
+
/** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */
|
|
65
|
+
get associatedRefs() {
|
|
66
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoRepoStrongRef.mainSchema));
|
|
67
|
+
},
|
|
68
|
+
/** When the external content was created, if available. Example: a publication date, for an article. */
|
|
69
|
+
createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
42
70
|
description: /*#__PURE__*/ v.string(),
|
|
71
|
+
get labels() {
|
|
72
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema));
|
|
73
|
+
},
|
|
74
|
+
/** Estimated reading time in minutes, if applicable and available. */
|
|
75
|
+
readingTime: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
76
|
+
get source() {
|
|
77
|
+
return /*#__PURE__*/ v.optional(viewExternalSourceSchema);
|
|
78
|
+
},
|
|
43
79
|
thumb: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
44
80
|
title: /*#__PURE__*/ v.string(),
|
|
81
|
+
/** When the external content was updated, if available. */
|
|
82
|
+
updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
45
83
|
uri: /*#__PURE__*/ v.genericUriString(),
|
|
46
84
|
});
|
|
85
|
+
const _viewExternalSourceSchema = /*#__PURE__*/ v.object({
|
|
86
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#viewExternalSource')),
|
|
87
|
+
description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
88
|
+
/**
|
|
89
|
+
* Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location
|
|
90
|
+
* provided by the App View.
|
|
91
|
+
*/
|
|
92
|
+
icon: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
93
|
+
get theme() {
|
|
94
|
+
return /*#__PURE__*/ v.optional(viewExternalSourceThemeSchema);
|
|
95
|
+
},
|
|
96
|
+
title: /*#__PURE__*/ v.string(),
|
|
97
|
+
/** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */
|
|
98
|
+
uri: /*#__PURE__*/ v.genericUriString(),
|
|
99
|
+
});
|
|
100
|
+
const _viewExternalSourceThemeSchema = /*#__PURE__*/ v.object({
|
|
101
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#viewExternalSourceTheme')),
|
|
102
|
+
get accentForegroundRGB() {
|
|
103
|
+
return /*#__PURE__*/ v.optional(colorRGBSchema);
|
|
104
|
+
},
|
|
105
|
+
get accentRGB() {
|
|
106
|
+
return /*#__PURE__*/ v.optional(colorRGBSchema);
|
|
107
|
+
},
|
|
108
|
+
get backgroundRGB() {
|
|
109
|
+
return /*#__PURE__*/ v.optional(colorRGBSchema);
|
|
110
|
+
},
|
|
111
|
+
get foregroundRGB() {
|
|
112
|
+
return /*#__PURE__*/ v.optional(colorRGBSchema);
|
|
113
|
+
},
|
|
114
|
+
});
|
|
47
115
|
|
|
116
|
+
type colorRGB$schematype = typeof _colorRGBSchema;
|
|
48
117
|
type external$schematype = typeof _externalSchema;
|
|
49
118
|
type main$schematype = typeof _mainSchema;
|
|
50
119
|
type view$schematype = typeof _viewSchema;
|
|
51
120
|
type viewExternal$schematype = typeof _viewExternalSchema;
|
|
121
|
+
type viewExternalSource$schematype = typeof _viewExternalSourceSchema;
|
|
122
|
+
type viewExternalSourceTheme$schematype = typeof _viewExternalSourceThemeSchema;
|
|
52
123
|
|
|
124
|
+
export interface colorRGBSchema extends colorRGB$schematype {}
|
|
53
125
|
export interface externalSchema extends external$schematype {}
|
|
54
126
|
export interface mainSchema extends main$schematype {}
|
|
55
127
|
export interface viewSchema extends view$schematype {}
|
|
56
128
|
export interface viewExternalSchema extends viewExternal$schematype {}
|
|
129
|
+
export interface viewExternalSourceSchema extends viewExternalSource$schematype {}
|
|
130
|
+
export interface viewExternalSourceThemeSchema extends viewExternalSourceTheme$schematype {}
|
|
57
131
|
|
|
132
|
+
export const colorRGBSchema = _colorRGBSchema as colorRGBSchema;
|
|
58
133
|
export const externalSchema = _externalSchema as externalSchema;
|
|
59
134
|
export const mainSchema = _mainSchema as mainSchema;
|
|
60
135
|
export const viewSchema = _viewSchema as viewSchema;
|
|
61
136
|
export const viewExternalSchema = _viewExternalSchema as viewExternalSchema;
|
|
137
|
+
export const viewExternalSourceSchema = _viewExternalSourceSchema as viewExternalSourceSchema;
|
|
138
|
+
export const viewExternalSourceThemeSchema = _viewExternalSourceThemeSchema as viewExternalSourceThemeSchema;
|
|
62
139
|
|
|
140
|
+
export interface ColorRGB extends v.InferInput<typeof colorRGBSchema> {}
|
|
63
141
|
export interface External extends v.InferInput<typeof externalSchema> {}
|
|
64
142
|
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
65
143
|
export interface View extends v.InferInput<typeof viewSchema> {}
|
|
66
144
|
export interface ViewExternal extends v.InferInput<typeof viewExternalSchema> {}
|
|
145
|
+
export interface ViewExternalSource extends v.InferInput<typeof viewExternalSourceSchema> {}
|
|
146
|
+
export interface ViewExternalSourceTheme extends v.InferInput<typeof viewExternalSourceThemeSchema> {}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
2
|
+
import type {} from '@atcute/lexicons';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as v from '@atcute/lexicons/validations';
|
|
5
|
+
|
|
6
|
+
import * as AppBskyEmbedExternal from './external.ts';
|
|
7
|
+
|
|
8
|
+
const _mainSchema = /*#__PURE__*/ v.query('app.bsky.embed.getEmbedExternalView', {
|
|
9
|
+
params: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* AT-URIs of any Atmosphere records that can be resolved and used to construct #externalView views.
|
|
12
|
+
* Example: a site.standard.document and optionally its associated site.standard.publication.
|
|
13
|
+
*
|
|
14
|
+
* @minLength 1
|
|
15
|
+
* @maxLength 4
|
|
16
|
+
*/
|
|
17
|
+
uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [
|
|
18
|
+
/*#__PURE__*/ v.arrayLength(1, 4),
|
|
19
|
+
]),
|
|
20
|
+
/**
|
|
21
|
+
* The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used
|
|
22
|
+
* as the returned view's `uri`. May be used for validation in the future.
|
|
23
|
+
*/
|
|
24
|
+
url: /*#__PURE__*/ v.genericUriString(),
|
|
25
|
+
}),
|
|
26
|
+
output: {
|
|
27
|
+
type: 'lex',
|
|
28
|
+
schema: /*#__PURE__*/ v.object({
|
|
29
|
+
associatedRecords: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.unknown())),
|
|
30
|
+
/**
|
|
31
|
+
* StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a
|
|
32
|
+
* post's external.associatedRefs.
|
|
33
|
+
*/
|
|
34
|
+
get associatedRefs() {
|
|
35
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoRepoStrongRef.mainSchema));
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Hydrated view of the embed. Present only when the resolved records back the requested URL and supply
|
|
39
|
+
* enough information to populate the required `viewExternal` fields. Omitted alongside the rest of the
|
|
40
|
+
* response when no records resolved or validation failed.
|
|
41
|
+
*/
|
|
42
|
+
get view() {
|
|
43
|
+
return /*#__PURE__*/ v.optional(AppBskyEmbedExternal.viewSchema);
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
type main$schematype = typeof _mainSchema;
|
|
50
|
+
|
|
51
|
+
export interface mainSchema extends main$schematype {}
|
|
52
|
+
|
|
53
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
54
|
+
|
|
55
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
56
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
57
|
+
|
|
58
|
+
declare module '@atcute/lexicons/ambient' {
|
|
59
|
+
interface XRPCQueries {
|
|
60
|
+
'app.bsky.embed.getEmbedExternalView': mainSchema;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.actor.getStatus', {
|
|
6
|
+
params: null,
|
|
7
|
+
output: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* Whether the viewer's account is allowed to create group chats. New accounts are restricted from
|
|
12
|
+
* creating groups.
|
|
13
|
+
*/
|
|
14
|
+
canCreateGroups: /*#__PURE__*/ v.boolean(),
|
|
15
|
+
/** True when the viewer's account is disabled and cannot actively participate in chat. */
|
|
16
|
+
chatDisabled: /*#__PURE__*/ v.boolean(),
|
|
17
|
+
/** The maximum number of members allowed in a group conversation. */
|
|
18
|
+
groupMemberLimit: /*#__PURE__*/ v.integer(),
|
|
19
|
+
}),
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
type main$schematype = typeof _mainSchema;
|
|
24
|
+
|
|
25
|
+
export interface mainSchema extends main$schematype {}
|
|
26
|
+
|
|
27
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
28
|
+
|
|
29
|
+
export interface $params {}
|
|
30
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
31
|
+
|
|
32
|
+
declare module '@atcute/lexicons/ambient' {
|
|
33
|
+
interface XRPCQueries {
|
|
34
|
+
'chat.bsky.actor.getStatus': mainSchema;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -66,12 +66,19 @@ const _groupConvoSchema = /*#__PURE__*/ v.object({
|
|
|
66
66
|
get joinLink() {
|
|
67
67
|
return /*#__PURE__*/ v.optional(ChatBskyGroupDefs.joinLinkViewSchema);
|
|
68
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* The total number of pending join requests for the group conversation. Only present for the owner. Capped
|
|
71
|
+
* at 21.
|
|
72
|
+
*/
|
|
73
|
+
joinRequestCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
69
74
|
/** The lock status of the conversation. */
|
|
70
75
|
get lockStatus() {
|
|
71
76
|
return convoLockStatusSchema;
|
|
72
77
|
},
|
|
73
78
|
/** The total number of members in the group conversation. */
|
|
74
79
|
memberCount: /*#__PURE__*/ v.integer(),
|
|
80
|
+
/** The maximum number of members allowed in the group conversation. */
|
|
81
|
+
memberLimit: /*#__PURE__*/ v.integer(),
|
|
75
82
|
/**
|
|
76
83
|
* The display name of the group conversation.
|
|
77
84
|
*
|
|
@@ -27,7 +27,7 @@ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.listConvoRequests', {
|
|
|
27
27
|
return /*#__PURE__*/ v.array(
|
|
28
28
|
/*#__PURE__*/ v.variant([
|
|
29
29
|
ChatBskyConvoDefs.convoViewSchema,
|
|
30
|
-
ChatBskyGroupDefs.
|
|
30
|
+
ChatBskyGroupDefs.joinRequestConvoViewSchema,
|
|
31
31
|
]),
|
|
32
32
|
);
|
|
33
33
|
},
|
|
@@ -6,16 +6,27 @@ import * as ChatBskyConvoDefs from '../convo/defs.ts';
|
|
|
6
6
|
|
|
7
7
|
const _joinLinkPreviewViewSchema = /*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinLinkPreviewView')),
|
|
9
|
+
code: /*#__PURE__*/ v.string(),
|
|
9
10
|
/** Present only if the request is authenticated and the user is a member of the group. */
|
|
10
11
|
get convo() {
|
|
11
12
|
return /*#__PURE__*/ v.optional(ChatBskyConvoDefs.convoViewSchema);
|
|
12
13
|
},
|
|
14
|
+
get enabledStatus() {
|
|
15
|
+
return linkEnabledStatusSchema;
|
|
16
|
+
},
|
|
17
|
+
get joinRule() {
|
|
18
|
+
return joinRuleSchema;
|
|
19
|
+
},
|
|
13
20
|
memberCount: /*#__PURE__*/ v.integer(),
|
|
21
|
+
memberLimit: /*#__PURE__*/ v.integer(),
|
|
14
22
|
name: /*#__PURE__*/ v.string(),
|
|
15
23
|
get owner() {
|
|
16
24
|
return ChatBskyActorDefs.profileViewBasicSchema;
|
|
17
25
|
},
|
|
18
26
|
requireApproval: /*#__PURE__*/ v.boolean(),
|
|
27
|
+
get viewer() {
|
|
28
|
+
return /*#__PURE__*/ v.optional(joinLinkViewerStateSchema);
|
|
29
|
+
},
|
|
19
30
|
});
|
|
20
31
|
const _joinLinkViewSchema = /*#__PURE__*/ v.object({
|
|
21
32
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinLinkView')),
|
|
@@ -29,6 +40,21 @@ const _joinLinkViewSchema = /*#__PURE__*/ v.object({
|
|
|
29
40
|
},
|
|
30
41
|
requireApproval: /*#__PURE__*/ v.boolean(),
|
|
31
42
|
});
|
|
43
|
+
const _joinLinkViewerStateSchema = /*#__PURE__*/ v.object({
|
|
44
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinLinkViewerState')),
|
|
45
|
+
requestedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
46
|
+
});
|
|
47
|
+
const _joinRequestConvoViewSchema = /*#__PURE__*/ v.object({
|
|
48
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinRequestConvoView')),
|
|
49
|
+
convoId: /*#__PURE__*/ v.string(),
|
|
50
|
+
memberCount: /*#__PURE__*/ v.integer(),
|
|
51
|
+
memberLimit: /*#__PURE__*/ v.integer(),
|
|
52
|
+
name: /*#__PURE__*/ v.string(),
|
|
53
|
+
get owner() {
|
|
54
|
+
return ChatBskyActorDefs.profileViewBasicSchema;
|
|
55
|
+
},
|
|
56
|
+
requestedAt: /*#__PURE__*/ v.datetimeString(),
|
|
57
|
+
});
|
|
32
58
|
const _joinRequestViewSchema = /*#__PURE__*/ v.object({
|
|
33
59
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinRequestView')),
|
|
34
60
|
convoId: /*#__PURE__*/ v.string(),
|
|
@@ -42,24 +68,32 @@ const _linkEnabledStatusSchema = /*#__PURE__*/ v.string<'disabled' | 'enabled' |
|
|
|
42
68
|
|
|
43
69
|
type joinLinkPreviewView$schematype = typeof _joinLinkPreviewViewSchema;
|
|
44
70
|
type joinLinkView$schematype = typeof _joinLinkViewSchema;
|
|
71
|
+
type joinLinkViewerState$schematype = typeof _joinLinkViewerStateSchema;
|
|
72
|
+
type joinRequestConvoView$schematype = typeof _joinRequestConvoViewSchema;
|
|
45
73
|
type joinRequestView$schematype = typeof _joinRequestViewSchema;
|
|
46
74
|
type joinRule$schematype = typeof _joinRuleSchema;
|
|
47
75
|
type linkEnabledStatus$schematype = typeof _linkEnabledStatusSchema;
|
|
48
76
|
|
|
49
77
|
export interface joinLinkPreviewViewSchema extends joinLinkPreviewView$schematype {}
|
|
50
78
|
export interface joinLinkViewSchema extends joinLinkView$schematype {}
|
|
79
|
+
export interface joinLinkViewerStateSchema extends joinLinkViewerState$schematype {}
|
|
80
|
+
export interface joinRequestConvoViewSchema extends joinRequestConvoView$schematype {}
|
|
51
81
|
export interface joinRequestViewSchema extends joinRequestView$schematype {}
|
|
52
82
|
export interface joinRuleSchema extends joinRule$schematype {}
|
|
53
83
|
export interface linkEnabledStatusSchema extends linkEnabledStatus$schematype {}
|
|
54
84
|
|
|
55
85
|
export const joinLinkPreviewViewSchema = _joinLinkPreviewViewSchema as joinLinkPreviewViewSchema;
|
|
56
86
|
export const joinLinkViewSchema = _joinLinkViewSchema as joinLinkViewSchema;
|
|
87
|
+
export const joinLinkViewerStateSchema = _joinLinkViewerStateSchema as joinLinkViewerStateSchema;
|
|
88
|
+
export const joinRequestConvoViewSchema = _joinRequestConvoViewSchema as joinRequestConvoViewSchema;
|
|
57
89
|
export const joinRequestViewSchema = _joinRequestViewSchema as joinRequestViewSchema;
|
|
58
90
|
export const joinRuleSchema = _joinRuleSchema as joinRuleSchema;
|
|
59
91
|
export const linkEnabledStatusSchema = _linkEnabledStatusSchema as linkEnabledStatusSchema;
|
|
60
92
|
|
|
61
93
|
export interface JoinLinkPreviewView extends v.InferInput<typeof joinLinkPreviewViewSchema> {}
|
|
62
94
|
export interface JoinLinkView extends v.InferInput<typeof joinLinkViewSchema> {}
|
|
95
|
+
export interface JoinLinkViewerState extends v.InferInput<typeof joinLinkViewerStateSchema> {}
|
|
96
|
+
export interface JoinRequestConvoView extends v.InferInput<typeof joinRequestConvoViewSchema> {}
|
|
63
97
|
export interface JoinRequestView extends v.InferInput<typeof joinRequestViewSchema> {}
|
|
64
98
|
export type JoinRule = v.InferInput<typeof joinRuleSchema>;
|
|
65
99
|
export type LinkEnabledStatus = v.InferInput<typeof linkEnabledStatusSchema>;
|
|
@@ -4,15 +4,21 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
4
4
|
|
|
5
5
|
import * as ChatBskyGroupDefs from './defs.ts';
|
|
6
6
|
|
|
7
|
-
const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.group.
|
|
7
|
+
const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.group.getJoinLinkPreviews', {
|
|
8
8
|
params: /*#__PURE__*/ v.object({
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* @minLength 1
|
|
11
|
+
* @maxLength 50
|
|
12
|
+
*/
|
|
13
|
+
codes: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [
|
|
14
|
+
/*#__PURE__*/ v.arrayLength(1, 50),
|
|
15
|
+
]),
|
|
10
16
|
}),
|
|
11
17
|
output: {
|
|
12
18
|
type: 'lex',
|
|
13
19
|
schema: /*#__PURE__*/ v.object({
|
|
14
|
-
get
|
|
15
|
-
return ChatBskyGroupDefs.joinLinkPreviewViewSchema;
|
|
20
|
+
get joinLinkPreviews() {
|
|
21
|
+
return /*#__PURE__*/ v.array(ChatBskyGroupDefs.joinLinkPreviewViewSchema);
|
|
16
22
|
},
|
|
17
23
|
}),
|
|
18
24
|
},
|
|
@@ -29,6 +35,6 @@ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
|
29
35
|
|
|
30
36
|
declare module '@atcute/lexicons/ambient' {
|
|
31
37
|
interface XRPCQueries {
|
|
32
|
-
'chat.bsky.group.
|
|
38
|
+
'chat.bsky.group.getJoinLinkPreviews': mainSchema;
|
|
33
39
|
}
|
|
34
40
|
}
|
package/lib/limits.ts
CHANGED
|
@@ -73,6 +73,11 @@ export const embedVideo = {
|
|
|
73
73
|
|
|
74
74
|
/** limits for `app.bsky.embed.external` */
|
|
75
75
|
export const embedExternal = {
|
|
76
|
+
colorRGB: {
|
|
77
|
+
b: { maximum: 255 },
|
|
78
|
+
g: { maximum: 255 },
|
|
79
|
+
r: { maximum: 255 },
|
|
80
|
+
},
|
|
76
81
|
external: {
|
|
77
82
|
thumb: { maxSize: 1_000_000 },
|
|
78
83
|
},
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getJoinLinkPreview.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/chat/bsky/group/getJoinLinkPreview.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAE/C,QAAA,MAAM,WAAW;;;;;;;wCAYf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AACtE,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,WAAW;QACpB,oCAAoC,EAAE,UAAU,CAAC;KACjD;CACD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as ChatBskyGroupDefs from './defs.js';
|
|
3
|
-
const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.group.getJoinLinkPreview', {
|
|
4
|
-
params: /*#__PURE__*/ v.object({
|
|
5
|
-
code: /*#__PURE__*/ v.string(),
|
|
6
|
-
}),
|
|
7
|
-
output: {
|
|
8
|
-
type: 'lex',
|
|
9
|
-
schema: /*#__PURE__*/ v.object({
|
|
10
|
-
get joinLinkPreview() {
|
|
11
|
-
return ChatBskyGroupDefs.joinLinkPreviewViewSchema;
|
|
12
|
-
},
|
|
13
|
-
}),
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
export const mainSchema = _mainSchema;
|
|
17
|
-
//# sourceMappingURL=getJoinLinkPreview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getJoinLinkPreview.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/chat/bsky/group/getJoinLinkPreview.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAoC,EAAE;IAC/E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;KAC9B,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,IAAI,eAAe;gBAClB,OAAO,iBAAiB,CAAC,yBAAyB,CAAC;YACpD,CAAC;SACD,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|