@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
@@ -6,23 +6,6 @@ export declare const Unknown: 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<"unknown">;
11
- }, "strip", z.ZodTypeAny, {
12
- id: string;
13
- type: "unknown";
14
- url: string;
15
- description: string | null;
16
- blurhash: string | null;
17
- preview_url: string | null;
18
- remote_url: string | null;
19
- }, {
20
- id: string;
21
- type: "unknown";
22
- url: string;
23
- description: string | null;
24
- blurhash: string | null;
25
- preview_url: string | null;
26
- remote_url: string | null;
27
- }>;
10
+ }, z.core.$strip>;
28
11
  export type Unknown = z.infer<typeof Unknown>;
@@ -6,7 +6,6 @@ export declare const Video: 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<"video">;
11
10
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
11
  length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -25,149 +24,13 @@ export declare const Video: z.ZodObject<{
25
24
  frame_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
25
  duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
26
  bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- }, "strip", z.ZodTypeAny, {
29
- width: number;
30
- height: number;
31
- duration?: number | null | undefined;
32
- frame_rate?: string | null | undefined;
33
- bitrate?: number | null | undefined;
34
- }, {
35
- width: number;
36
- height: number;
37
- duration?: number | null | undefined;
38
- frame_rate?: string | null | undefined;
39
- bitrate?: number | null | undefined;
40
- }>;
27
+ }, z.core.$strip>;
41
28
  small: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
29
  width: z.ZodNumber;
43
30
  height: z.ZodNumber;
44
31
  size: z.ZodString;
45
32
  aspect: z.ZodNumber;
46
- }, "strip", z.ZodTypeAny, {
47
- width: number;
48
- height: number;
49
- size: string;
50
- aspect: number;
51
- }, {
52
- width: number;
53
- height: number;
54
- size: string;
55
- aspect: number;
56
- }>>>;
57
- }, "strip", z.ZodTypeAny, {
58
- width: number;
59
- height: number;
60
- size: string;
61
- aspect: number;
62
- original: {
63
- width: number;
64
- height: number;
65
- duration?: number | null | undefined;
66
- frame_rate?: string | null | undefined;
67
- bitrate?: number | null | undefined;
68
- };
69
- length?: string | null | undefined;
70
- duration?: number | null | undefined;
71
- fps?: number | null | undefined;
72
- small?: {
73
- width: number;
74
- height: number;
75
- size: string;
76
- aspect: number;
77
- } | null | undefined;
78
- audio_encode?: string | null | undefined;
79
- audio_bitrate?: string | null | undefined;
80
- audio_channels?: string | null | undefined;
81
- }, {
82
- width: number;
83
- height: number;
84
- size: string;
85
- aspect: number;
86
- original: {
87
- width: number;
88
- height: number;
89
- duration?: number | null | undefined;
90
- frame_rate?: string | null | undefined;
91
- bitrate?: number | null | undefined;
92
- };
93
- length?: string | null | undefined;
94
- duration?: number | null | undefined;
95
- fps?: number | null | undefined;
96
- small?: {
97
- width: number;
98
- height: number;
99
- size: string;
100
- aspect: number;
101
- } | null | undefined;
102
- audio_encode?: string | null | undefined;
103
- audio_bitrate?: string | null | undefined;
104
- audio_channels?: string | null | undefined;
105
- }>>>;
106
- }, "strip", z.ZodTypeAny, {
107
- id: string;
108
- type: "video";
109
- url: string;
110
- description: string | null;
111
- blurhash: string | null;
112
- preview_url: string | null;
113
- remote_url: string | null;
114
- meta?: {
115
- width: number;
116
- height: number;
117
- size: string;
118
- aspect: number;
119
- original: {
120
- width: number;
121
- height: number;
122
- duration?: number | null | undefined;
123
- frame_rate?: string | null | undefined;
124
- bitrate?: number | null | undefined;
125
- };
126
- length?: string | null | undefined;
127
- duration?: number | null | undefined;
128
- fps?: number | null | undefined;
129
- small?: {
130
- width: number;
131
- height: number;
132
- size: string;
133
- aspect: number;
134
- } | null | undefined;
135
- audio_encode?: string | null | undefined;
136
- audio_bitrate?: string | null | undefined;
137
- audio_channels?: string | null | undefined;
138
- } | null | undefined;
139
- }, {
140
- id: string;
141
- type: "video";
142
- url: string;
143
- description: string | null;
144
- blurhash: string | null;
145
- preview_url: string | null;
146
- remote_url: string | null;
147
- meta?: {
148
- width: number;
149
- height: number;
150
- size: string;
151
- aspect: number;
152
- original: {
153
- width: number;
154
- height: number;
155
- duration?: number | null | undefined;
156
- frame_rate?: string | null | undefined;
157
- bitrate?: number | null | undefined;
158
- };
159
- length?: string | null | undefined;
160
- duration?: number | null | undefined;
161
- fps?: number | null | undefined;
162
- small?: {
163
- width: number;
164
- height: number;
165
- size: string;
166
- aspect: number;
167
- } | null | undefined;
168
- audio_encode?: string | null | undefined;
169
- audio_bitrate?: string | null | undefined;
170
- audio_channels?: string | null | undefined;
171
- } | null | undefined;
172
- }>;
33
+ }, z.core.$strip>>>;
34
+ }, z.core.$strip>>>;
35
+ }, z.core.$strip>;
173
36
  export type Video = z.infer<typeof Video>;
@@ -9,73 +9,15 @@ export declare const Poll: z.ZodObject<{
9
9
  options: z.ZodArray<z.ZodObject<{
10
10
  title: z.ZodString;
11
11
  votes_count: z.ZodNullable<z.ZodNumber>;
12
- }, "strip", z.ZodTypeAny, {
13
- title: string;
14
- votes_count: number | null;
15
- }, {
16
- title: string;
17
- votes_count: number | null;
18
- }>, "many">;
12
+ }, z.core.$strip>>;
19
13
  emojis: z.ZodArray<z.ZodObject<{
20
14
  shortcode: z.ZodString;
21
15
  static_url: z.ZodString;
22
16
  url: z.ZodString;
23
17
  visible_in_picker: z.ZodBoolean;
24
18
  category: z.ZodNullable<z.ZodString>;
25
- }, "strip", z.ZodTypeAny, {
26
- url: string;
27
- shortcode: string;
28
- static_url: string;
29
- visible_in_picker: boolean;
30
- category: string | null;
31
- }, {
32
- url: string;
33
- shortcode: string;
34
- static_url: string;
35
- visible_in_picker: boolean;
36
- category: string | null;
37
- }>, "many">;
19
+ }, z.core.$strip>>;
38
20
  voted: z.ZodOptional<z.ZodBoolean>;
39
- own_votes: z.ZodArray<z.ZodNumber, "many">;
40
- }, "strip", z.ZodTypeAny, {
41
- id: string;
42
- options: {
43
- title: string;
44
- votes_count: number | null;
45
- }[];
46
- emojis: {
47
- url: string;
48
- shortcode: string;
49
- static_url: string;
50
- visible_in_picker: boolean;
51
- category: string | null;
52
- }[];
53
- expires_at: string | null;
54
- votes_count: number;
55
- expired: boolean;
56
- multiple: boolean;
57
- voters_count: number;
58
- own_votes: number[];
59
- voted?: boolean | undefined;
60
- }, {
61
- id: string;
62
- options: {
63
- title: string;
64
- votes_count: number | null;
65
- }[];
66
- emojis: {
67
- url: string;
68
- shortcode: string;
69
- static_url: string;
70
- visible_in_picker: boolean;
71
- category: string | null;
72
- }[];
73
- expires_at: string | null;
74
- votes_count: number;
75
- expired: boolean;
76
- multiple: boolean;
77
- voters_count: number;
78
- own_votes: number[];
79
- voted?: boolean | undefined;
80
- }>;
21
+ own_votes: z.ZodArray<z.ZodNumber>;
22
+ }, z.core.$strip>;
81
23
  export type Poll = z.infer<typeof Poll>;
@@ -2,11 +2,5 @@ import { z } from "zod";
2
2
  export declare const Option: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  votes_count: z.ZodNullable<z.ZodNumber>;
5
- }, "strip", z.ZodTypeAny, {
6
- title: string;
7
- votes_count: number | null;
8
- }, {
9
- title: string;
10
- votes_count: number | null;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export type Option = z.infer<typeof Option>;
@@ -3,7 +3,12 @@ export declare const PreviewCard: z.ZodObject<{
3
3
  url: z.ZodString;
4
4
  title: z.ZodString;
5
5
  description: z.ZodString;
6
- type: z.ZodEnum<["link", "photo", "video", "rich"]>;
6
+ type: z.ZodEnum<{
7
+ link: "link";
8
+ photo: "photo";
9
+ video: "video";
10
+ rich: "rich";
11
+ }>;
7
12
  author_name: z.ZodString;
8
13
  author_url: z.ZodString;
9
14
  provider_name: z.ZodString;
@@ -14,35 +19,5 @@ export declare const PreviewCard: z.ZodObject<{
14
19
  image: z.ZodNullable<z.ZodString>;
15
20
  embed_url: z.ZodString;
16
21
  blurhash: z.ZodNullable<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- type: "link" | "photo" | "video" | "rich";
19
- url: string;
20
- image: string | null;
21
- description: string;
22
- blurhash: string | null;
23
- width: number;
24
- height: number;
25
- title: string;
26
- author_name: string;
27
- author_url: string;
28
- provider_name: string;
29
- provider_url: string;
30
- html: string;
31
- embed_url: string;
32
- }, {
33
- type: "link" | "photo" | "video" | "rich";
34
- url: string;
35
- image: string | null;
36
- description: string;
37
- blurhash: string | null;
38
- width: number;
39
- height: number;
40
- title: string;
41
- author_name: string;
42
- author_url: string;
43
- provider_name: string;
44
- provider_url: string;
45
- html: string;
46
- embed_url: string;
47
- }>;
22
+ }, z.core.$strip>;
48
23
  export type PreviewCard = z.infer<typeof PreviewCard>;
@@ -2,11 +2,5 @@ import { z } from "zod";
2
2
  export declare const Application: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  website: z.ZodNullable<z.ZodString>;
5
- }, "strip", z.ZodTypeAny, {
6
- name: string;
7
- website: string | null;
8
- }, {
9
- name: string;
10
- website: string | null;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export type Application = z.infer<typeof Application>;