@llun/activities.schema 0.2.30 → 0.2.31
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.
|
@@ -11,6 +11,8 @@ const customEmoji_js_1 = require("../customEmoji.js");
|
|
|
11
11
|
const index_js_2 = require("../poll/index.js");
|
|
12
12
|
const previewCard_js_1 = require("../previewCard.js");
|
|
13
13
|
const filterResult_js_1 = require("../filterResult.js");
|
|
14
|
+
const mention_js_1 = require("./mention.js");
|
|
15
|
+
const tag_js_1 = require("./tag.js");
|
|
14
16
|
exports.BaseStatus = zod_1.z.object({
|
|
15
17
|
id: zod_1.z.string({
|
|
16
18
|
description: "ID of the status in the database, for Mastodon, it is numeric casting to string. For Activities.next, this is equal to status URI",
|
|
@@ -30,6 +32,8 @@ exports.BaseStatus = zod_1.z.object({
|
|
|
30
32
|
media_attachments: index_js_1.MediaAttachment.array(),
|
|
31
33
|
application: application_js_1.Application.optional(),
|
|
32
34
|
emojis: customEmoji_js_1.CustomEmoji.array().describe("Custom emoji to be used when rendering status content"),
|
|
35
|
+
mentions: mention_js_1.Mention.array().describe("Mentions of users within the status content"),
|
|
36
|
+
tags: tag_js_1.Tag.array().describe("Hashtags used within the status content"),
|
|
33
37
|
reblogs_count: zod_1.z.number({
|
|
34
38
|
description: "How many boosts this status has received",
|
|
35
39
|
}),
|
|
@@ -8,6 +8,8 @@ import { CustomEmoji } from "../customEmoji.js";
|
|
|
8
8
|
import { Poll } from "../poll/index.js";
|
|
9
9
|
import { PreviewCard } from "../previewCard.js";
|
|
10
10
|
import { FilterResult } from "../filterResult.js";
|
|
11
|
+
import { Mention } from "./mention.js";
|
|
12
|
+
import { Tag } from "./tag.js";
|
|
11
13
|
export const BaseStatus = z.object({
|
|
12
14
|
id: z.string({
|
|
13
15
|
description: "ID of the status in the database, for Mastodon, it is numeric casting to string. For Activities.next, this is equal to status URI",
|
|
@@ -27,6 +29,8 @@ export const BaseStatus = z.object({
|
|
|
27
29
|
media_attachments: MediaAttachment.array(),
|
|
28
30
|
application: Application.optional(),
|
|
29
31
|
emojis: CustomEmoji.array().describe("Custom emoji to be used when rendering status content"),
|
|
32
|
+
mentions: Mention.array().describe("Mentions of users within the status content"),
|
|
33
|
+
tags: Tag.array().describe("Hashtags used within the status content"),
|
|
30
34
|
reblogs_count: z.number({
|
|
31
35
|
description: "How many boosts this status has received",
|
|
32
36
|
}),
|
|
@@ -1090,6 +1090,32 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
1090
1090
|
visible_in_picker: boolean;
|
|
1091
1091
|
category: string | null;
|
|
1092
1092
|
}>, "many">;
|
|
1093
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
1094
|
+
id: z.ZodString;
|
|
1095
|
+
username: z.ZodString;
|
|
1096
|
+
url: z.ZodString;
|
|
1097
|
+
acct: z.ZodString;
|
|
1098
|
+
}, "strip", z.ZodTypeAny, {
|
|
1099
|
+
id: string;
|
|
1100
|
+
url: string;
|
|
1101
|
+
username: string;
|
|
1102
|
+
acct: string;
|
|
1103
|
+
}, {
|
|
1104
|
+
id: string;
|
|
1105
|
+
url: string;
|
|
1106
|
+
username: string;
|
|
1107
|
+
acct: string;
|
|
1108
|
+
}>, "many">;
|
|
1109
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1110
|
+
name: z.ZodString;
|
|
1111
|
+
url: z.ZodString;
|
|
1112
|
+
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
url: string;
|
|
1114
|
+
name: string;
|
|
1115
|
+
}, {
|
|
1116
|
+
url: string;
|
|
1117
|
+
name: string;
|
|
1118
|
+
}>, "many">;
|
|
1093
1119
|
reblogs_count: z.ZodNumber;
|
|
1094
1120
|
favourites_count: z.ZodNumber;
|
|
1095
1121
|
replies_count: z.ZodNumber;
|
|
@@ -1562,6 +1588,16 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
1562
1588
|
preview_url: string | null;
|
|
1563
1589
|
remote_url: string | null;
|
|
1564
1590
|
})[];
|
|
1591
|
+
mentions: {
|
|
1592
|
+
id: string;
|
|
1593
|
+
url: string;
|
|
1594
|
+
username: string;
|
|
1595
|
+
acct: string;
|
|
1596
|
+
}[];
|
|
1597
|
+
tags: {
|
|
1598
|
+
url: string;
|
|
1599
|
+
name: string;
|
|
1600
|
+
}[];
|
|
1565
1601
|
reblogs_count: number;
|
|
1566
1602
|
favourites_count: number;
|
|
1567
1603
|
replies_count: number;
|
|
@@ -1865,6 +1901,16 @@ export declare const BaseStatus: z.ZodObject<{
|
|
|
1865
1901
|
preview_url: string | null;
|
|
1866
1902
|
remote_url: string | null;
|
|
1867
1903
|
})[];
|
|
1904
|
+
mentions: {
|
|
1905
|
+
id: string;
|
|
1906
|
+
url: string;
|
|
1907
|
+
username: string;
|
|
1908
|
+
acct: string;
|
|
1909
|
+
}[];
|
|
1910
|
+
tags: {
|
|
1911
|
+
url: string;
|
|
1912
|
+
name: string;
|
|
1913
|
+
}[];
|
|
1868
1914
|
reblogs_count: number;
|
|
1869
1915
|
favourites_count: number;
|
|
1870
1916
|
replies_count: number;
|
|
@@ -1090,6 +1090,32 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1090
1090
|
visible_in_picker: boolean;
|
|
1091
1091
|
category: string | null;
|
|
1092
1092
|
}>, "many">;
|
|
1093
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
1094
|
+
id: z.ZodString;
|
|
1095
|
+
username: z.ZodString;
|
|
1096
|
+
url: z.ZodString;
|
|
1097
|
+
acct: z.ZodString;
|
|
1098
|
+
}, "strip", z.ZodTypeAny, {
|
|
1099
|
+
id: string;
|
|
1100
|
+
url: string;
|
|
1101
|
+
username: string;
|
|
1102
|
+
acct: string;
|
|
1103
|
+
}, {
|
|
1104
|
+
id: string;
|
|
1105
|
+
url: string;
|
|
1106
|
+
username: string;
|
|
1107
|
+
acct: string;
|
|
1108
|
+
}>, "many">;
|
|
1109
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1110
|
+
name: z.ZodString;
|
|
1111
|
+
url: z.ZodString;
|
|
1112
|
+
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
url: string;
|
|
1114
|
+
name: string;
|
|
1115
|
+
}, {
|
|
1116
|
+
url: string;
|
|
1117
|
+
name: string;
|
|
1118
|
+
}>, "many">;
|
|
1093
1119
|
reblogs_count: z.ZodNumber;
|
|
1094
1120
|
favourites_count: z.ZodNumber;
|
|
1095
1121
|
replies_count: z.ZodNumber;
|
|
@@ -2424,6 +2450,32 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2424
2450
|
visible_in_picker: boolean;
|
|
2425
2451
|
category: string | null;
|
|
2426
2452
|
}>, "many">;
|
|
2453
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
2454
|
+
id: z.ZodString;
|
|
2455
|
+
username: z.ZodString;
|
|
2456
|
+
url: z.ZodString;
|
|
2457
|
+
acct: z.ZodString;
|
|
2458
|
+
}, "strip", z.ZodTypeAny, {
|
|
2459
|
+
id: string;
|
|
2460
|
+
url: string;
|
|
2461
|
+
username: string;
|
|
2462
|
+
acct: string;
|
|
2463
|
+
}, {
|
|
2464
|
+
id: string;
|
|
2465
|
+
url: string;
|
|
2466
|
+
username: string;
|
|
2467
|
+
acct: string;
|
|
2468
|
+
}>, "many">;
|
|
2469
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
2470
|
+
name: z.ZodString;
|
|
2471
|
+
url: z.ZodString;
|
|
2472
|
+
}, "strip", z.ZodTypeAny, {
|
|
2473
|
+
url: string;
|
|
2474
|
+
name: string;
|
|
2475
|
+
}, {
|
|
2476
|
+
url: string;
|
|
2477
|
+
name: string;
|
|
2478
|
+
}>, "many">;
|
|
2427
2479
|
reblogs_count: z.ZodNumber;
|
|
2428
2480
|
favourites_count: z.ZodNumber;
|
|
2429
2481
|
replies_count: z.ZodNumber;
|
|
@@ -2896,6 +2948,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2896
2948
|
preview_url: string | null;
|
|
2897
2949
|
remote_url: string | null;
|
|
2898
2950
|
})[];
|
|
2951
|
+
mentions: {
|
|
2952
|
+
id: string;
|
|
2953
|
+
url: string;
|
|
2954
|
+
username: string;
|
|
2955
|
+
acct: string;
|
|
2956
|
+
}[];
|
|
2957
|
+
tags: {
|
|
2958
|
+
url: string;
|
|
2959
|
+
name: string;
|
|
2960
|
+
}[];
|
|
2899
2961
|
reblogs_count: number;
|
|
2900
2962
|
favourites_count: number;
|
|
2901
2963
|
replies_count: number;
|
|
@@ -3199,6 +3261,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3199
3261
|
preview_url: string | null;
|
|
3200
3262
|
remote_url: string | null;
|
|
3201
3263
|
})[];
|
|
3264
|
+
mentions: {
|
|
3265
|
+
id: string;
|
|
3266
|
+
url: string;
|
|
3267
|
+
username: string;
|
|
3268
|
+
acct: string;
|
|
3269
|
+
}[];
|
|
3270
|
+
tags: {
|
|
3271
|
+
url: string;
|
|
3272
|
+
name: string;
|
|
3273
|
+
}[];
|
|
3202
3274
|
reblogs_count: number;
|
|
3203
3275
|
favourites_count: number;
|
|
3204
3276
|
replies_count: number;
|
|
@@ -3503,6 +3575,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3503
3575
|
preview_url: string | null;
|
|
3504
3576
|
remote_url: string | null;
|
|
3505
3577
|
})[];
|
|
3578
|
+
mentions: {
|
|
3579
|
+
id: string;
|
|
3580
|
+
url: string;
|
|
3581
|
+
username: string;
|
|
3582
|
+
acct: string;
|
|
3583
|
+
}[];
|
|
3584
|
+
tags: {
|
|
3585
|
+
url: string;
|
|
3586
|
+
name: string;
|
|
3587
|
+
}[];
|
|
3506
3588
|
reblogs_count: number;
|
|
3507
3589
|
favourites_count: number;
|
|
3508
3590
|
replies_count: number;
|
|
@@ -3777,6 +3859,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3777
3859
|
preview_url: string | null;
|
|
3778
3860
|
remote_url: string | null;
|
|
3779
3861
|
})[];
|
|
3862
|
+
mentions: {
|
|
3863
|
+
id: string;
|
|
3864
|
+
url: string;
|
|
3865
|
+
username: string;
|
|
3866
|
+
acct: string;
|
|
3867
|
+
}[];
|
|
3868
|
+
tags: {
|
|
3869
|
+
url: string;
|
|
3870
|
+
name: string;
|
|
3871
|
+
}[];
|
|
3780
3872
|
reblogs_count: number;
|
|
3781
3873
|
favourites_count: number;
|
|
3782
3874
|
replies_count: number;
|
|
@@ -4110,6 +4202,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4110
4202
|
preview_url: string | null;
|
|
4111
4203
|
remote_url: string | null;
|
|
4112
4204
|
})[];
|
|
4205
|
+
mentions: {
|
|
4206
|
+
id: string;
|
|
4207
|
+
url: string;
|
|
4208
|
+
username: string;
|
|
4209
|
+
acct: string;
|
|
4210
|
+
}[];
|
|
4211
|
+
tags: {
|
|
4212
|
+
url: string;
|
|
4213
|
+
name: string;
|
|
4214
|
+
}[];
|
|
4113
4215
|
reblogs_count: number;
|
|
4114
4216
|
favourites_count: number;
|
|
4115
4217
|
replies_count: number;
|
|
@@ -4384,6 +4486,16 @@ export declare const Status: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4384
4486
|
preview_url: string | null;
|
|
4385
4487
|
remote_url: string | null;
|
|
4386
4488
|
})[];
|
|
4489
|
+
mentions: {
|
|
4490
|
+
id: string;
|
|
4491
|
+
url: string;
|
|
4492
|
+
username: string;
|
|
4493
|
+
acct: string;
|
|
4494
|
+
}[];
|
|
4495
|
+
tags: {
|
|
4496
|
+
url: string;
|
|
4497
|
+
name: string;
|
|
4498
|
+
}[];
|
|
4387
4499
|
reblogs_count: number;
|
|
4388
4500
|
favourites_count: number;
|
|
4389
4501
|
replies_count: number;
|
package/package.json
CHANGED
|
@@ -8,6 +8,8 @@ import { CustomEmoji } from "../customEmoji.js";
|
|
|
8
8
|
import { Poll } from "../poll/index.js";
|
|
9
9
|
import { PreviewCard } from "../previewCard.js";
|
|
10
10
|
import { FilterResult } from "../filterResult.js";
|
|
11
|
+
import { Mention } from "./mention.js";
|
|
12
|
+
import { Tag } from "./tag.js";
|
|
11
13
|
|
|
12
14
|
export const BaseStatus = z.object({
|
|
13
15
|
id: z.string({
|
|
@@ -36,6 +38,11 @@ export const BaseStatus = z.object({
|
|
|
36
38
|
"Custom emoji to be used when rendering status content"
|
|
37
39
|
),
|
|
38
40
|
|
|
41
|
+
mentions: Mention.array().describe(
|
|
42
|
+
"Mentions of users within the status content"
|
|
43
|
+
),
|
|
44
|
+
tags: Tag.array().describe("Hashtags used within the status content"),
|
|
45
|
+
|
|
39
46
|
reblogs_count: z.number({
|
|
40
47
|
description: "How many boosts this status has received",
|
|
41
48
|
}),
|