+16
-16
lexicons/lex.config.js
+16
-16
lexicons/lex.config.js
···
8
8
import {defineLexiconConfig} from "@atcute/lex-cli";
9
9
10
10
export default defineLexiconConfig({
11
11
-
files: ["../lexdocs/**/*.json"],
12
12
-
outdir: "lib/lexicons",
13
13
-
mappings: [
14
14
-
{
15
15
-
nsid: ["com.atproto.*"],
16
16
-
imports: (nsid) => {
17
17
-
const specifier = nsid
18
18
-
.slice("com.atproto.".length)
19
19
-
.replaceAll(".", "/");
20
20
-
return {
21
21
-
type: "namespace",
22
22
-
from: `@atcute/atproto/types/${specifier}`,
23
23
-
};
24
24
-
},
25
25
-
},
26
26
-
],
11
11
+
files: ["../lexdocs/**/*.json"],
12
12
+
outdir: "lib/lexicons",
13
13
+
mappings: [
14
14
+
{
15
15
+
nsid: ["com.atproto.*"],
16
16
+
imports: (nsid) => {
17
17
+
const specifier = nsid
18
18
+
.slice("com.atproto.".length)
19
19
+
.replaceAll(".", "/");
20
20
+
return {
21
21
+
type: "namespace",
22
22
+
from: `@atcute/atproto/types/${specifier}`,
23
23
+
};
24
24
+
},
25
25
+
},
26
26
+
],
27
27
});
+10
lexicons/lib/lexicons/index.ts
+10
lexicons/lib/lexicons/index.ts
···
5
5
*/
6
6
7
7
export * as SocialClipprActorDefs from "./types/social/clippr/actor/defs.js";
8
8
+
export * as SocialClipprActorGetPreferences from "./types/social/clippr/actor/getPreferences.js";
8
9
export * as SocialClipprActorGetProfile from "./types/social/clippr/actor/getProfile.js";
9
10
export * as SocialClipprActorProfile from "./types/social/clippr/actor/profile.js";
11
11
+
export * as SocialClipprActorPutPreferences from "./types/social/clippr/actor/putPreferences.js";
12
12
+
export * as SocialClipprActorSearchClips from "./types/social/clippr/actor/searchClips.js";
13
13
+
export * as SocialClipprActorSearchProfiles from "./types/social/clippr/actor/searchProfiles.js";
14
14
+
export * as SocialClipprActorSearchTags from "./types/social/clippr/actor/searchTags.js";
10
15
export * as SocialClipprFeedClip from "./types/social/clippr/feed/clip.js";
16
16
+
export * as SocialClipprFeedDefs from "./types/social/clippr/feed/defs.js";
17
17
+
export * as SocialClipprFeedGetClips from "./types/social/clippr/feed/getClips.js";
18
18
+
export * as SocialClipprFeedGetProfileClips from "./types/social/clippr/feed/getProfileClips.js";
19
19
+
export * as SocialClipprFeedGetProfileTags from "./types/social/clippr/feed/getProfileTags.js";
20
20
+
export * as SocialClipprFeedGetTagList from "./types/social/clippr/feed/getTagList.js";
11
21
export * as SocialClipprFeedTag from "./types/social/clippr/feed/tag.js";
+20
lexicons/lib/lexicons/types/social/clippr/actor/defs.ts
+20
lexicons/lib/lexicons/types/social/clippr/actor/defs.ts
···
7
7
import type {} from "@atcute/lexicons";
8
8
import * as v from "@atcute/lexicons/validations";
9
9
10
10
+
const _preferencesSchema = /*#__PURE__*/ v.array(() => {
11
11
+
return /*#__PURE__*/ v.variant([publishingScopesPrefSchema]);
12
12
+
});
10
13
const _profileViewSchema = /*#__PURE__*/ v.object({
11
14
$type: /*#__PURE__*/ v.optional(
12
15
/*#__PURE__*/ v.literal("social.clippr.actor.defs#profileView"),
···
28
31
),
29
32
handle: /*#__PURE__*/ v.handleString(),
30
33
});
34
34
+
const _publishingScopesPrefSchema = /*#__PURE__*/ v.object({
35
35
+
$type: /*#__PURE__*/ v.optional(
36
36
+
/*#__PURE__*/ v.literal("social.clippr.actor.defs#publishingScopesPref"),
37
37
+
),
38
38
+
defaultScope: /*#__PURE__*/ v.string<"public" | "unlisted" | (string & {})>(),
39
39
+
});
31
40
41
41
+
type preferences$schematype = typeof _preferencesSchema;
32
42
type profileView$schematype = typeof _profileViewSchema;
43
43
+
type publishingScopesPref$schematype = typeof _publishingScopesPrefSchema;
33
44
45
45
+
export interface preferencesSchema extends preferences$schematype {}
34
46
export interface profileViewSchema extends profileView$schematype {}
47
47
+
export interface publishingScopesPrefSchema
48
48
+
extends publishingScopesPref$schematype {}
35
49
50
50
+
export const preferencesSchema = _preferencesSchema as preferencesSchema;
36
51
export const profileViewSchema = _profileViewSchema as profileViewSchema;
52
52
+
export const publishingScopesPrefSchema =
53
53
+
_publishingScopesPrefSchema as publishingScopesPrefSchema;
37
54
55
55
+
export interface Preferences extends v.InferInput<typeof preferencesSchema> {}
38
56
export interface ProfileView extends v.InferInput<typeof profileViewSchema> {}
57
57
+
export interface PublishingScopesPref
58
58
+
extends v.InferInput<typeof publishingScopesPrefSchema> {}
+40
lexicons/lib/lexicons/types/social/clippr/actor/getPreferences.ts
+40
lexicons/lib/lexicons/types/social/clippr/actor/getPreferences.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprActorDefs from "./defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query(
13
13
+
"social.clippr.actor.getPreferences",
14
14
+
{
15
15
+
params: /*#__PURE__*/ v.object({}),
16
16
+
output: {
17
17
+
type: "lex",
18
18
+
schema: /*#__PURE__*/ v.object({
19
19
+
get preferences() {
20
20
+
return SocialClipprActorDefs.preferencesSchema;
21
21
+
},
22
22
+
}),
23
23
+
},
24
24
+
},
25
25
+
);
26
26
+
27
27
+
type main$schematype = typeof _mainSchema;
28
28
+
29
29
+
export interface mainSchema extends main$schematype {}
30
30
+
31
31
+
export const mainSchema = _mainSchema as mainSchema;
32
32
+
33
33
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
34
34
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
35
35
+
36
36
+
declare module "@atcute/lexicons/ambient" {
37
37
+
interface XRPCQueries {
38
38
+
"social.clippr.actor.getPreferences": mainSchema;
39
39
+
}
40
40
+
}
+41
lexicons/lib/lexicons/types/social/clippr/actor/putPreferences.ts
+41
lexicons/lib/lexicons/types/social/clippr/actor/putPreferences.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprActorDefs from "./defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.procedure(
13
13
+
"social.clippr.actor.putPreferences",
14
14
+
{
15
15
+
params: null,
16
16
+
input: {
17
17
+
type: "lex",
18
18
+
schema: /*#__PURE__*/ v.object({
19
19
+
get preferences() {
20
20
+
return SocialClipprActorDefs.preferencesSchema;
21
21
+
},
22
22
+
}),
23
23
+
},
24
24
+
output: null,
25
25
+
},
26
26
+
);
27
27
+
28
28
+
type main$schematype = typeof _mainSchema;
29
29
+
30
30
+
export interface mainSchema extends main$schematype {}
31
31
+
32
32
+
export const mainSchema = _mainSchema as mainSchema;
33
33
+
34
34
+
export interface $params {}
35
35
+
export interface $input extends v.InferXRPCBodyInput<mainSchema["input"]> {}
36
36
+
37
37
+
declare module "@atcute/lexicons/ambient" {
38
38
+
interface XRPCProcedures {
39
39
+
"social.clippr.actor.putPreferences": mainSchema;
40
40
+
}
41
41
+
}
+48
lexicons/lib/lexicons/types/social/clippr/actor/searchClips.ts
+48
lexicons/lib/lexicons/types/social/clippr/actor/searchClips.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprFeedDefs from "../feed/defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query("social.clippr.actor.searchClips", {
13
13
+
params: /*#__PURE__*/ v.object({
14
14
+
actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()),
15
15
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
16
16
+
limit: /*#__PURE__*/ v.optional(
17
17
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
18
18
+
/*#__PURE__*/ v.integerRange(1, 100),
19
19
+
]),
20
20
+
25,
21
21
+
),
22
22
+
q: /*#__PURE__*/ v.string(),
23
23
+
}),
24
24
+
output: {
25
25
+
type: "lex",
26
26
+
schema: /*#__PURE__*/ v.object({
27
27
+
get clips() {
28
28
+
return /*#__PURE__*/ v.array(SocialClipprFeedDefs.clipViewSchema);
29
29
+
},
30
30
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
31
31
+
}),
32
32
+
},
33
33
+
});
34
34
+
35
35
+
type main$schematype = typeof _mainSchema;
36
36
+
37
37
+
export interface mainSchema extends main$schematype {}
38
38
+
39
39
+
export const mainSchema = _mainSchema as mainSchema;
40
40
+
41
41
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
42
42
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
43
43
+
44
44
+
declare module "@atcute/lexicons/ambient" {
45
45
+
interface XRPCQueries {
46
46
+
"social.clippr.actor.searchClips": mainSchema;
47
47
+
}
48
48
+
}
+50
lexicons/lib/lexicons/types/social/clippr/actor/searchProfiles.ts
+50
lexicons/lib/lexicons/types/social/clippr/actor/searchProfiles.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprActorDefs from "./defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query(
13
13
+
"social.clippr.actor.searchProfiles",
14
14
+
{
15
15
+
params: /*#__PURE__*/ v.object({
16
16
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
17
17
+
limit: /*#__PURE__*/ v.optional(
18
18
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
19
19
+
/*#__PURE__*/ v.integerRange(1, 100),
20
20
+
]),
21
21
+
25,
22
22
+
),
23
23
+
q: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
24
24
+
}),
25
25
+
output: {
26
26
+
type: "lex",
27
27
+
schema: /*#__PURE__*/ v.object({
28
28
+
get actors() {
29
29
+
return /*#__PURE__*/ v.array(SocialClipprActorDefs.profileViewSchema);
30
30
+
},
31
31
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
32
32
+
}),
33
33
+
},
34
34
+
},
35
35
+
);
36
36
+
37
37
+
type main$schematype = typeof _mainSchema;
38
38
+
39
39
+
export interface mainSchema extends main$schematype {}
40
40
+
41
41
+
export const mainSchema = _mainSchema as mainSchema;
42
42
+
43
43
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
44
44
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
45
45
+
46
46
+
declare module "@atcute/lexicons/ambient" {
47
47
+
interface XRPCQueries {
48
48
+
"social.clippr.actor.searchProfiles": mainSchema;
49
49
+
}
50
50
+
}
+48
lexicons/lib/lexicons/types/social/clippr/actor/searchTags.ts
+48
lexicons/lib/lexicons/types/social/clippr/actor/searchTags.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprFeedDefs from "../feed/defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query("social.clippr.actor.searchTags", {
13
13
+
params: /*#__PURE__*/ v.object({
14
14
+
actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()),
15
15
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
16
16
+
limit: /*#__PURE__*/ v.optional(
17
17
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
18
18
+
/*#__PURE__*/ v.integerRange(1, 100),
19
19
+
]),
20
20
+
25,
21
21
+
),
22
22
+
q: /*#__PURE__*/ v.string(),
23
23
+
}),
24
24
+
output: {
25
25
+
type: "lex",
26
26
+
schema: /*#__PURE__*/ v.object({
27
27
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
28
28
+
get tags() {
29
29
+
return /*#__PURE__*/ v.array(SocialClipprFeedDefs.tagViewSchema);
30
30
+
},
31
31
+
}),
32
32
+
},
33
33
+
});
34
34
+
35
35
+
type main$schematype = typeof _mainSchema;
36
36
+
37
37
+
export interface mainSchema extends main$schematype {}
38
38
+
39
39
+
export const mainSchema = _mainSchema as mainSchema;
40
40
+
41
41
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
42
42
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
43
43
+
44
44
+
declare module "@atcute/lexicons/ambient" {
45
45
+
interface XRPCQueries {
46
46
+
"social.clippr.actor.searchTags": mainSchema;
47
47
+
}
48
48
+
}
+46
lexicons/lib/lexicons/types/social/clippr/feed/defs.ts
+46
lexicons/lib/lexicons/types/social/clippr/feed/defs.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import * as SocialClipprActorDefs from "../actor/defs.js";
10
10
+
11
11
+
const _clipViewSchema = /*#__PURE__*/ v.object({
12
12
+
$type: /*#__PURE__*/ v.optional(
13
13
+
/*#__PURE__*/ v.literal("social.clippr.feed.defs#clipView"),
14
14
+
),
15
15
+
get author() {
16
16
+
return SocialClipprActorDefs.profileViewSchema;
17
17
+
},
18
18
+
cid: /*#__PURE__*/ v.cidString(),
19
19
+
indexedAt: /*#__PURE__*/ v.datetimeString(),
20
20
+
record: /*#__PURE__*/ v.unknown(),
21
21
+
uri: /*#__PURE__*/ v.resourceUriString(),
22
22
+
});
23
23
+
const _tagViewSchema = /*#__PURE__*/ v.object({
24
24
+
$type: /*#__PURE__*/ v.optional(
25
25
+
/*#__PURE__*/ v.literal("social.clippr.feed.defs#tagView"),
26
26
+
),
27
27
+
get author() {
28
28
+
return SocialClipprActorDefs.profileViewSchema;
29
29
+
},
30
30
+
cid: /*#__PURE__*/ v.cidString(),
31
31
+
indexedAt: /*#__PURE__*/ v.datetimeString(),
32
32
+
record: /*#__PURE__*/ v.unknown(),
33
33
+
uri: /*#__PURE__*/ v.resourceUriString(),
34
34
+
});
35
35
+
36
36
+
type clipView$schematype = typeof _clipViewSchema;
37
37
+
type tagView$schematype = typeof _tagViewSchema;
38
38
+
39
39
+
export interface clipViewSchema extends clipView$schematype {}
40
40
+
export interface tagViewSchema extends tagView$schematype {}
41
41
+
42
42
+
export const clipViewSchema = _clipViewSchema as clipViewSchema;
43
43
+
export const tagViewSchema = _tagViewSchema as tagViewSchema;
44
44
+
45
45
+
export interface ClipView extends v.InferInput<typeof clipViewSchema> {}
46
46
+
export interface TagView extends v.InferInput<typeof tagViewSchema> {}
+42
lexicons/lib/lexicons/types/social/clippr/feed/getClips.ts
+42
lexicons/lib/lexicons/types/social/clippr/feed/getClips.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprFeedDefs from "./defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query("social.clippr.feed.getClips", {
13
13
+
params: /*#__PURE__*/ v.object({
14
14
+
uris: /*#__PURE__*/ v.constrain(
15
15
+
/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()),
16
16
+
[/*#__PURE__*/ v.arrayLength(1, 25)],
17
17
+
),
18
18
+
}),
19
19
+
output: {
20
20
+
type: "lex",
21
21
+
schema: /*#__PURE__*/ v.object({
22
22
+
get tags() {
23
23
+
return /*#__PURE__*/ v.array(SocialClipprFeedDefs.tagViewSchema);
24
24
+
},
25
25
+
}),
26
26
+
},
27
27
+
});
28
28
+
29
29
+
type main$schematype = typeof _mainSchema;
30
30
+
31
31
+
export interface mainSchema extends main$schematype {}
32
32
+
33
33
+
export const mainSchema = _mainSchema as mainSchema;
34
34
+
35
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
37
+
38
38
+
declare module "@atcute/lexicons/ambient" {
39
39
+
interface XRPCQueries {
40
40
+
"social.clippr.feed.getClips": mainSchema;
41
41
+
}
42
42
+
}
+56
lexicons/lib/lexicons/types/social/clippr/feed/getProfileClips.ts
+56
lexicons/lib/lexicons/types/social/clippr/feed/getProfileClips.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprFeedDefs from "./defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query(
13
13
+
"social.clippr.feed.getProfileClips",
14
14
+
{
15
15
+
params: /*#__PURE__*/ v.object({
16
16
+
actor: /*#__PURE__*/ v.actorIdentifierString(),
17
17
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
18
18
+
filter: /*#__PURE__*/ v.optional(
19
19
+
/*#__PURE__*/ v.string<
20
20
+
"all_clips" | "tagged_clips" | "untagged_clips" | (string & {})
21
21
+
>(),
22
22
+
"all_clips",
23
23
+
),
24
24
+
limit: /*#__PURE__*/ v.optional(
25
25
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
26
26
+
/*#__PURE__*/ v.integerRange(1, 100),
27
27
+
]),
28
28
+
50,
29
29
+
),
30
30
+
}),
31
31
+
output: {
32
32
+
type: "lex",
33
33
+
schema: /*#__PURE__*/ v.object({
34
34
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
35
35
+
get feed() {
36
36
+
return /*#__PURE__*/ v.array(SocialClipprFeedDefs.clipViewSchema);
37
37
+
},
38
38
+
}),
39
39
+
},
40
40
+
},
41
41
+
);
42
42
+
43
43
+
type main$schematype = typeof _mainSchema;
44
44
+
45
45
+
export interface mainSchema extends main$schematype {}
46
46
+
47
47
+
export const mainSchema = _mainSchema as mainSchema;
48
48
+
49
49
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
50
50
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
51
51
+
52
52
+
declare module "@atcute/lexicons/ambient" {
53
53
+
interface XRPCQueries {
54
54
+
"social.clippr.feed.getProfileClips": mainSchema;
55
55
+
}
56
56
+
}
+47
lexicons/lib/lexicons/types/social/clippr/feed/getProfileTags.ts
+47
lexicons/lib/lexicons/types/social/clippr/feed/getProfileTags.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprFeedDefs from "./defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query("social.clippr.feed.getProfileTags", {
13
13
+
params: /*#__PURE__*/ v.object({
14
14
+
actor: /*#__PURE__*/ v.actorIdentifierString(),
15
15
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
16
16
+
limit: /*#__PURE__*/ v.optional(
17
17
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
18
18
+
/*#__PURE__*/ v.integerRange(1, 100),
19
19
+
]),
20
20
+
50,
21
21
+
),
22
22
+
}),
23
23
+
output: {
24
24
+
type: "lex",
25
25
+
schema: /*#__PURE__*/ v.object({
26
26
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
27
27
+
get feed() {
28
28
+
return /*#__PURE__*/ v.array(SocialClipprFeedDefs.tagViewSchema);
29
29
+
},
30
30
+
}),
31
31
+
},
32
32
+
});
33
33
+
34
34
+
type main$schematype = typeof _mainSchema;
35
35
+
36
36
+
export interface mainSchema extends main$schematype {}
37
37
+
38
38
+
export const mainSchema = _mainSchema as mainSchema;
39
39
+
40
40
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
41
41
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
42
42
+
43
43
+
declare module "@atcute/lexicons/ambient" {
44
44
+
interface XRPCQueries {
45
45
+
"social.clippr.feed.getProfileTags": mainSchema;
46
46
+
}
47
47
+
}
+39
lexicons/lib/lexicons/types/social/clippr/feed/getTagList.ts
+39
lexicons/lib/lexicons/types/social/clippr/feed/getTagList.ts
···
1
1
+
/*
2
2
+
* clippr: a social bookmarking service for the AT Protocol
3
3
+
* Copyright (c) 2025 clippr contributors.
4
4
+
* SPDX-License-Identifier: AGPL-3.0-only
5
5
+
*/
6
6
+
7
7
+
import type {} from "@atcute/lexicons";
8
8
+
import * as v from "@atcute/lexicons/validations";
9
9
+
import type {} from "@atcute/lexicons/ambient";
10
10
+
import * as SocialClipprFeedDefs from "./defs.js";
11
11
+
12
12
+
const _mainSchema = /*#__PURE__*/ v.query("social.clippr.feed.getTagList", {
13
13
+
params: /*#__PURE__*/ v.object({
14
14
+
actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()),
15
15
+
}),
16
16
+
output: {
17
17
+
type: "lex",
18
18
+
schema: /*#__PURE__*/ v.object({
19
19
+
get tags() {
20
20
+
return /*#__PURE__*/ v.array(SocialClipprFeedDefs.tagViewSchema);
21
21
+
},
22
22
+
}),
23
23
+
},
24
24
+
});
25
25
+
26
26
+
type main$schematype = typeof _mainSchema;
27
27
+
28
28
+
export interface mainSchema extends main$schematype {}
29
29
+
30
30
+
export const mainSchema = _mainSchema as mainSchema;
31
31
+
32
32
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
33
33
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
34
34
+
35
35
+
declare module "@atcute/lexicons/ambient" {
36
36
+
interface XRPCQueries {
37
37
+
"social.clippr.feed.getTagList": mainSchema;
38
38
+
}
39
39
+
}
+6
lexicons/lib/lexicons/types/social/clippr/feed/tag.ts
+6
lexicons/lib/lexicons/types/social/clippr/feed/tag.ts
···
19
19
]),
20
20
),
21
21
createdAt: /*#__PURE__*/ v.datetimeString(),
22
22
+
description: /*#__PURE__*/ v.optional(
23
23
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
24
24
+
/*#__PURE__*/ v.stringLength(10, 50000),
25
25
+
/*#__PURE__*/ v.stringGraphemes(1, 5000),
26
26
+
]),
27
27
+
),
22
28
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
23
29
/*#__PURE__*/ v.stringLength(10, 640),
24
30
/*#__PURE__*/ v.stringGraphemes(1, 64),