@llun/activities.schema 0.2.34 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/.claude/settings.local.json +22 -0
  2. package/.yarn/install-state.gz +0 -0
  3. package/dist/cjs/announce.js +1 -1
  4. package/dist/cjs/mastodon/account/field.js +4 -9
  5. package/dist/cjs/mastodon/account/source.js +4 -12
  6. package/dist/cjs/mastodon/account.js +27 -66
  7. package/dist/cjs/mastodon/customEmoji.js +6 -15
  8. package/dist/cjs/mastodon/filter/index.js +4 -7
  9. package/dist/cjs/mastodon/filter/keyword.js +3 -5
  10. package/dist/cjs/mastodon/filter/status.js +2 -4
  11. package/dist/cjs/mastodon/mediaAttachment/base.js +10 -18
  12. package/dist/cjs/mastodon/mediaAttachment/gifv.js +2 -6
  13. package/dist/cjs/mastodon/mediaAttachment/video.js +2 -6
  14. package/dist/cjs/mastodon/poll/index.js +9 -11
  15. package/dist/cjs/mastodon/poll/option.js +3 -4
  16. package/dist/cjs/mastodon/previewCard.js +15 -28
  17. package/dist/cjs/mastodon/status/application.js +3 -6
  18. package/dist/cjs/mastodon/status/base.js +31 -54
  19. package/dist/cjs/mastodon/status/mention.js +4 -8
  20. package/dist/cjs/mastodon/status/tag.js +2 -6
  21. package/dist/cjs/note/baseContent.js +11 -12
  22. package/dist/cjs/question.js +1 -1
  23. package/dist/esm/announce.js +1 -1
  24. package/dist/esm/mastodon/account/field.js +4 -9
  25. package/dist/esm/mastodon/account/source.js +4 -12
  26. package/dist/esm/mastodon/account.js +27 -66
  27. package/dist/esm/mastodon/customEmoji.js +6 -15
  28. package/dist/esm/mastodon/filter/index.js +4 -7
  29. package/dist/esm/mastodon/filter/keyword.js +3 -5
  30. package/dist/esm/mastodon/filter/status.js +2 -4
  31. package/dist/esm/mastodon/mediaAttachment/base.js +10 -18
  32. package/dist/esm/mastodon/mediaAttachment/gifv.js +2 -6
  33. package/dist/esm/mastodon/mediaAttachment/video.js +2 -6
  34. package/dist/esm/mastodon/poll/index.js +9 -11
  35. package/dist/esm/mastodon/poll/option.js +3 -4
  36. package/dist/esm/mastodon/previewCard.js +15 -28
  37. package/dist/esm/mastodon/status/application.js +3 -6
  38. package/dist/esm/mastodon/status/base.js +31 -54
  39. package/dist/esm/mastodon/status/mention.js +4 -8
  40. package/dist/esm/mastodon/status/tag.js +2 -6
  41. package/dist/esm/note/baseContent.js +11 -12
  42. package/dist/esm/question.js +1 -1
  43. package/dist/types/accept.d.ts +2 -32
  44. package/dist/types/actor.d.ts +18 -288
  45. package/dist/types/announce.d.ts +3 -19
  46. package/dist/types/collection.d.ts +11 -87
  47. package/dist/types/follow.d.ts +1 -11
  48. package/dist/types/image.d.ts +1 -9
  49. package/dist/types/like.d.ts +27 -576
  50. package/dist/types/mastodon/account/field.d.ts +1 -9
  51. package/dist/types/mastodon/account/relationship.d.ts +2 -34
  52. package/dist/types/mastodon/account/source.d.ts +8 -33
  53. package/dist/types/mastodon/account.d.ts +22 -397
  54. package/dist/types/mastodon/customEmoji.d.ts +1 -13
  55. package/dist/types/mastodon/filter/index.d.ts +14 -49
  56. package/dist/types/mastodon/filter/keyword.d.ts +1 -9
  57. package/dist/types/mastodon/filter/status.d.ts +1 -7
  58. package/dist/types/mastodon/filterResult.d.ts +17 -90
  59. package/dist/types/mastodon/mediaAttachment/audio.d.ts +3 -68
  60. package/dist/types/mastodon/mediaAttachment/base.d.ts +1 -15
  61. package/dist/types/mastodon/mediaAttachment/gifv.d.ts +4 -129
  62. package/dist/types/mastodon/mediaAttachment/image.d.ts +5 -118
  63. package/dist/types/mastodon/mediaAttachment/index.d.ts +35 -949
  64. package/dist/types/mastodon/mediaAttachment/unknown.d.ts +1 -18
  65. package/dist/types/mastodon/mediaAttachment/video.d.ts +4 -141
  66. package/dist/types/mastodon/poll/index.d.ts +4 -62
  67. package/dist/types/mastodon/poll/option.d.ts +1 -7
  68. package/dist/types/mastodon/previewCard.d.ts +7 -32
  69. package/dist/types/mastodon/status/application.d.ts +1 -7
  70. package/dist/types/mastodon/status/base.d.ts +79 -1722
  71. package/dist/types/mastodon/status/index.d.ts +158 -4073
  72. package/dist/types/mastodon/status/mention.d.ts +1 -11
  73. package/dist/types/mastodon/status/tag.d.ts +1 -7
  74. package/dist/types/mastodon/visibility.d.ts +6 -1
  75. package/dist/types/note/attachment.d.ts +3 -29
  76. package/dist/types/note/baseContent.d.ts +25 -379
  77. package/dist/types/note/document.d.ts +1 -19
  78. package/dist/types/note/emoji.d.ts +2 -28
  79. package/dist/types/note/hashtag.d.ts +1 -9
  80. package/dist/types/note/mention.d.ts +1 -9
  81. package/dist/types/note/propertyValue.d.ts +1 -9
  82. package/dist/types/note/tag.d.ts +5 -47
  83. package/dist/types/note.d.ts +25 -382
  84. package/dist/types/question/note.d.ts +2 -22
  85. package/dist/types/question.d.ts +27 -422
  86. package/dist/types/reject.d.ts +2 -32
  87. package/dist/types/tombstone.d.ts +1 -7
  88. package/dist/types/undo.d.ts +30 -801
  89. package/package.json +4 -4
  90. package/src/announce.ts +1 -1
  91. package/src/mastodon/account/field.ts +6 -10
  92. package/src/mastodon/account/source.ts +4 -12
  93. package/src/mastodon/account.ts +71 -78
  94. package/src/mastodon/customEmoji.ts +8 -16
  95. package/src/mastodon/filter/index.ts +6 -8
  96. package/src/mastodon/filter/keyword.ts +5 -6
  97. package/src/mastodon/filter/status.ts +2 -4
  98. package/src/mastodon/mediaAttachment/base.ts +16 -21
  99. package/src/mastodon/mediaAttachment/gifv.ts +2 -6
  100. package/src/mastodon/mediaAttachment/video.ts +2 -6
  101. package/src/mastodon/poll/index.ts +13 -13
  102. package/src/mastodon/poll/option.ts +5 -5
  103. package/src/mastodon/previewCard.ts +17 -29
  104. package/src/mastodon/status/application.ts +5 -7
  105. package/src/mastodon/status/base.ts +53 -65
  106. package/src/mastodon/status/mention.ts +6 -9
  107. package/src/mastodon/status/tag.ts +2 -6
  108. package/src/note/baseContent.ts +13 -13
  109. package/src/question.ts +1 -1
@@ -3,102 +3,29 @@ export declare const FilterResult: z.ZodObject<{
3
3
  filter: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  title: z.ZodString;
6
- context: z.ZodArray<z.ZodEnum<["home", "notifications", "public", "thread", "account"]>, "many">;
6
+ context: z.ZodArray<z.ZodEnum<{
7
+ public: "public";
8
+ home: "home";
9
+ notifications: "notifications";
10
+ thread: "thread";
11
+ account: "account";
12
+ }>>;
7
13
  expires_at: z.ZodNullable<z.ZodString>;
8
- filter_action: z.ZodEnum<["warn", "hide"]>;
14
+ filter_action: z.ZodEnum<{
15
+ warn: "warn";
16
+ hide: "hide";
17
+ }>;
9
18
  keywords: z.ZodArray<z.ZodObject<{
10
19
  id: z.ZodString;
11
20
  keyword: z.ZodString;
12
21
  whole_word: z.ZodBoolean;
13
- }, "strip", z.ZodTypeAny, {
14
- id: string;
15
- keyword: string;
16
- whole_word: boolean;
17
- }, {
18
- id: string;
19
- keyword: string;
20
- whole_word: boolean;
21
- }>, "many">;
22
+ }, z.core.$strip>>;
22
23
  statuses: z.ZodArray<z.ZodObject<{
23
24
  id: z.ZodString;
24
25
  status_id: z.ZodString;
25
- }, "strip", z.ZodTypeAny, {
26
- id: string;
27
- status_id: string;
28
- }, {
29
- id: string;
30
- status_id: string;
31
- }>, "many">;
32
- }, "strip", z.ZodTypeAny, {
33
- id: string;
34
- title: string;
35
- context: ("public" | "home" | "notifications" | "thread" | "account")[];
36
- expires_at: string | null;
37
- filter_action: "warn" | "hide";
38
- keywords: {
39
- id: string;
40
- keyword: string;
41
- whole_word: boolean;
42
- }[];
43
- statuses: {
44
- id: string;
45
- status_id: string;
46
- }[];
47
- }, {
48
- id: string;
49
- title: string;
50
- context: ("public" | "home" | "notifications" | "thread" | "account")[];
51
- expires_at: string | null;
52
- filter_action: "warn" | "hide";
53
- keywords: {
54
- id: string;
55
- keyword: string;
56
- whole_word: boolean;
57
- }[];
58
- statuses: {
59
- id: string;
60
- status_id: string;
61
- }[];
62
- }>;
63
- keyword_matches: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
64
- status_matches: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
65
- }, "strip", z.ZodTypeAny, {
66
- filter: {
67
- id: string;
68
- title: string;
69
- context: ("public" | "home" | "notifications" | "thread" | "account")[];
70
- expires_at: string | null;
71
- filter_action: "warn" | "hide";
72
- keywords: {
73
- id: string;
74
- keyword: string;
75
- whole_word: boolean;
76
- }[];
77
- statuses: {
78
- id: string;
79
- status_id: string;
80
- }[];
81
- };
82
- keyword_matches: string[] | null;
83
- status_matches: string[] | null;
84
- }, {
85
- filter: {
86
- id: string;
87
- title: string;
88
- context: ("public" | "home" | "notifications" | "thread" | "account")[];
89
- expires_at: string | null;
90
- filter_action: "warn" | "hide";
91
- keywords: {
92
- id: string;
93
- keyword: string;
94
- whole_word: boolean;
95
- }[];
96
- statuses: {
97
- id: string;
98
- status_id: string;
99
- }[];
100
- };
101
- keyword_matches: string[] | null;
102
- status_matches: string[] | null;
103
- }>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ keyword_matches: z.ZodNullable<z.ZodArray<z.ZodString>>;
29
+ status_matches: z.ZodNullable<z.ZodArray<z.ZodString>>;
30
+ }, z.core.$strip>;
104
31
  export type FilterResult = z.infer<typeof FilterResult>;
@@ -6,7 +6,6 @@ export declare const Audio: z.ZodObject<{
6
6
  remote_url: z.ZodNullable<z.ZodString>;
7
7
  description: z.ZodNullable<z.ZodString>;
8
8
  blurhash: z.ZodNullable<z.ZodString>;
9
- } & {
10
9
  type: z.ZodLiteral<"audio">;
11
10
  meta: z.ZodObject<{
12
11
  length: z.ZodString;
@@ -17,71 +16,7 @@ export declare const Audio: z.ZodObject<{
17
16
  original: z.ZodObject<{
18
17
  duration: z.ZodNumber;
19
18
  bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
- }, "strip", z.ZodTypeAny, {
21
- duration: number;
22
- bitrate?: number | null | undefined;
23
- }, {
24
- duration: number;
25
- bitrate?: number | null | undefined;
26
- }>;
27
- }, "strip", z.ZodTypeAny, {
28
- length: string;
29
- duration: number;
30
- original: {
31
- duration: number;
32
- bitrate?: number | null | undefined;
33
- };
34
- audio_encode?: string | null | undefined;
35
- audio_bitrate?: string | null | undefined;
36
- audio_channels?: string | null | undefined;
37
- }, {
38
- length: string;
39
- duration: number;
40
- original: {
41
- duration: number;
42
- bitrate?: number | null | undefined;
43
- };
44
- audio_encode?: string | null | undefined;
45
- audio_bitrate?: string | null | undefined;
46
- audio_channels?: string | null | undefined;
47
- }>;
48
- }, "strip", z.ZodTypeAny, {
49
- id: string;
50
- type: "audio";
51
- url: string;
52
- description: string | null;
53
- blurhash: string | null;
54
- preview_url: string | null;
55
- remote_url: string | null;
56
- meta: {
57
- length: string;
58
- duration: number;
59
- original: {
60
- duration: number;
61
- bitrate?: number | null | undefined;
62
- };
63
- audio_encode?: string | null | undefined;
64
- audio_bitrate?: string | null | undefined;
65
- audio_channels?: string | null | undefined;
66
- };
67
- }, {
68
- id: string;
69
- type: "audio";
70
- url: string;
71
- description: string | null;
72
- blurhash: string | null;
73
- preview_url: string | null;
74
- remote_url: string | null;
75
- meta: {
76
- length: string;
77
- duration: number;
78
- original: {
79
- duration: number;
80
- bitrate?: number | null | undefined;
81
- };
82
- audio_encode?: string | null | undefined;
83
- audio_bitrate?: string | null | undefined;
84
- audio_channels?: string | null | undefined;
85
- };
86
- }>;
19
+ }, z.core.$strip>;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
87
22
  export type Audio = z.infer<typeof Audio>;
@@ -6,19 +6,5 @@ export declare const BaseMediaAttachment: z.ZodObject<{
6
6
  remote_url: z.ZodNullable<z.ZodString>;
7
7
  description: z.ZodNullable<z.ZodString>;
8
8
  blurhash: z.ZodNullable<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- id: string;
11
- url: string;
12
- description: string | null;
13
- blurhash: string | null;
14
- preview_url: string | null;
15
- remote_url: string | null;
16
- }, {
17
- id: string;
18
- url: string;
19
- description: string | null;
20
- blurhash: string | null;
21
- preview_url: string | null;
22
- remote_url: string | null;
23
- }>;
9
+ }, z.core.$strip>;
24
10
  export type BaseMediaAttachment = z.infer<typeof BaseMediaAttachment>;
@@ -6,7 +6,6 @@ export declare const Gifv: z.ZodObject<{
6
6
  remote_url: z.ZodNullable<z.ZodString>;
7
7
  description: z.ZodNullable<z.ZodString>;
8
8
  blurhash: z.ZodNullable<z.ZodString>;
9
- } & {
10
9
  type: z.ZodLiteral<"gifv">;
11
10
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
11
  length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -22,137 +21,13 @@ export declare const Gifv: z.ZodObject<{
22
21
  frame_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
22
  duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
23
  bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
- }, "strip", z.ZodTypeAny, {
26
- width: number;
27
- height: number;
28
- duration?: number | null | undefined;
29
- frame_rate?: string | null | undefined;
30
- bitrate?: number | null | undefined;
31
- }, {
32
- width: number;
33
- height: number;
34
- duration?: number | null | undefined;
35
- frame_rate?: string | null | undefined;
36
- bitrate?: number | null | undefined;
37
- }>;
24
+ }, z.core.$strip>;
38
25
  small: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
26
  width: z.ZodNumber;
40
27
  height: z.ZodNumber;
41
28
  size: z.ZodString;
42
29
  aspect: z.ZodNumber;
43
- }, "strip", z.ZodTypeAny, {
44
- width: number;
45
- height: number;
46
- size: string;
47
- aspect: number;
48
- }, {
49
- width: number;
50
- height: number;
51
- size: string;
52
- aspect: number;
53
- }>>>;
54
- }, "strip", z.ZodTypeAny, {
55
- width: number;
56
- height: number;
57
- size: string;
58
- aspect: number;
59
- original: {
60
- width: number;
61
- height: number;
62
- duration?: number | null | undefined;
63
- frame_rate?: string | null | undefined;
64
- bitrate?: number | null | undefined;
65
- };
66
- length?: string | null | undefined;
67
- duration?: number | null | undefined;
68
- fps?: number | null | undefined;
69
- small?: {
70
- width: number;
71
- height: number;
72
- size: string;
73
- aspect: number;
74
- } | null | undefined;
75
- }, {
76
- width: number;
77
- height: number;
78
- size: string;
79
- aspect: number;
80
- original: {
81
- width: number;
82
- height: number;
83
- duration?: number | null | undefined;
84
- frame_rate?: string | null | undefined;
85
- bitrate?: number | null | undefined;
86
- };
87
- length?: string | null | undefined;
88
- duration?: number | null | undefined;
89
- fps?: number | null | undefined;
90
- small?: {
91
- width: number;
92
- height: number;
93
- size: string;
94
- aspect: number;
95
- } | null | undefined;
96
- }>>>;
97
- }, "strip", z.ZodTypeAny, {
98
- id: string;
99
- type: "gifv";
100
- url: string;
101
- description: string | null;
102
- blurhash: string | null;
103
- preview_url: string | null;
104
- remote_url: string | null;
105
- meta?: {
106
- width: number;
107
- height: number;
108
- size: string;
109
- aspect: number;
110
- original: {
111
- width: number;
112
- height: number;
113
- duration?: number | null | undefined;
114
- frame_rate?: string | null | undefined;
115
- bitrate?: number | null | undefined;
116
- };
117
- length?: string | null | undefined;
118
- duration?: number | null | undefined;
119
- fps?: number | null | undefined;
120
- small?: {
121
- width: number;
122
- height: number;
123
- size: string;
124
- aspect: number;
125
- } | null | undefined;
126
- } | null | undefined;
127
- }, {
128
- id: string;
129
- type: "gifv";
130
- url: string;
131
- description: string | null;
132
- blurhash: string | null;
133
- preview_url: string | null;
134
- remote_url: string | null;
135
- meta?: {
136
- width: number;
137
- height: number;
138
- size: string;
139
- aspect: number;
140
- original: {
141
- width: number;
142
- height: number;
143
- duration?: number | null | undefined;
144
- frame_rate?: string | null | undefined;
145
- bitrate?: number | null | undefined;
146
- };
147
- length?: string | null | undefined;
148
- duration?: number | null | undefined;
149
- fps?: number | null | undefined;
150
- small?: {
151
- width: number;
152
- height: number;
153
- size: string;
154
- aspect: number;
155
- } | null | undefined;
156
- } | null | undefined;
157
- }>;
30
+ }, z.core.$strip>>>;
31
+ }, z.core.$strip>>>;
32
+ }, z.core.$strip>;
158
33
  export type Gifv = z.infer<typeof Gifv>;
@@ -6,7 +6,6 @@ export declare const Image: z.ZodObject<{
6
6
  remote_url: z.ZodNullable<z.ZodString>;
7
7
  description: z.ZodNullable<z.ZodString>;
8
8
  blurhash: z.ZodNullable<z.ZodString>;
9
- } & {
10
9
  type: z.ZodLiteral<"image">;
11
10
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
11
  original: z.ZodObject<{
@@ -14,129 +13,17 @@ export declare const Image: z.ZodObject<{
14
13
  height: z.ZodNumber;
15
14
  size: z.ZodString;
16
15
  aspect: z.ZodNumber;
17
- }, "strip", z.ZodTypeAny, {
18
- width: number;
19
- height: number;
20
- size: string;
21
- aspect: number;
22
- }, {
23
- width: number;
24
- height: number;
25
- size: string;
26
- aspect: number;
27
- }>;
16
+ }, z.core.$strip>;
28
17
  small: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
18
  width: z.ZodNumber;
30
19
  height: z.ZodNumber;
31
20
  size: z.ZodString;
32
21
  aspect: z.ZodNumber;
33
- }, "strip", z.ZodTypeAny, {
34
- width: number;
35
- height: number;
36
- size: string;
37
- aspect: number;
38
- }, {
39
- width: number;
40
- height: number;
41
- size: string;
42
- aspect: number;
43
- }>>>;
22
+ }, z.core.$strip>>>;
44
23
  focus: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
24
  x: z.ZodNumber;
46
25
  y: z.ZodNumber;
47
- }, "strip", z.ZodTypeAny, {
48
- x: number;
49
- y: number;
50
- }, {
51
- x: number;
52
- y: number;
53
- }>>>;
54
- }, "strip", z.ZodTypeAny, {
55
- original: {
56
- width: number;
57
- height: number;
58
- size: string;
59
- aspect: number;
60
- };
61
- small?: {
62
- width: number;
63
- height: number;
64
- size: string;
65
- aspect: number;
66
- } | null | undefined;
67
- focus?: {
68
- x: number;
69
- y: number;
70
- } | null | undefined;
71
- }, {
72
- original: {
73
- width: number;
74
- height: number;
75
- size: string;
76
- aspect: number;
77
- };
78
- small?: {
79
- width: number;
80
- height: number;
81
- size: string;
82
- aspect: number;
83
- } | null | undefined;
84
- focus?: {
85
- x: number;
86
- y: number;
87
- } | null | undefined;
88
- }>>>;
89
- }, "strip", z.ZodTypeAny, {
90
- id: string;
91
- type: "image";
92
- url: string;
93
- description: string | null;
94
- blurhash: string | null;
95
- preview_url: string | null;
96
- remote_url: string | null;
97
- meta?: {
98
- original: {
99
- width: number;
100
- height: number;
101
- size: string;
102
- aspect: number;
103
- };
104
- small?: {
105
- width: number;
106
- height: number;
107
- size: string;
108
- aspect: number;
109
- } | null | undefined;
110
- focus?: {
111
- x: number;
112
- y: number;
113
- } | null | undefined;
114
- } | null | undefined;
115
- }, {
116
- id: string;
117
- type: "image";
118
- url: string;
119
- description: string | null;
120
- blurhash: string | null;
121
- preview_url: string | null;
122
- remote_url: string | null;
123
- meta?: {
124
- original: {
125
- width: number;
126
- height: number;
127
- size: string;
128
- aspect: number;
129
- };
130
- small?: {
131
- width: number;
132
- height: number;
133
- size: string;
134
- aspect: number;
135
- } | null | undefined;
136
- focus?: {
137
- x: number;
138
- y: number;
139
- } | null | undefined;
140
- } | null | undefined;
141
- }>;
26
+ }, z.core.$strip>>>;
27
+ }, z.core.$strip>>>;
28
+ }, z.core.$strip>;
142
29
  export type Image = z.infer<typeof Image>;