@llun/activities.schema 0.0.8 → 0.1.0

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 (78) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +1 -0
  4. package/dist/like.d.ts +16 -125
  5. package/dist/mastodon/account.d.ts +327 -0
  6. package/dist/mastodon/account.js +87 -0
  7. package/dist/mastodon/accountField.d.ts +15 -0
  8. package/dist/mastodon/accountField.js +15 -0
  9. package/dist/mastodon/customEmoji.d.ts +21 -0
  10. package/dist/mastodon/customEmoji.js +21 -0
  11. package/dist/mastodon/filter/index.d.ts +62 -0
  12. package/dist/mastodon/filter/index.js +24 -0
  13. package/dist/mastodon/filter/keyword.d.ts +15 -0
  14. package/dist/mastodon/filter/keyword.js +9 -0
  15. package/dist/mastodon/filter/status.d.ts +12 -0
  16. package/dist/mastodon/filter/status.js +8 -0
  17. package/dist/mastodon/filterResult.d.ts +104 -0
  18. package/dist/mastodon/filterResult.js +16 -0
  19. package/dist/mastodon/index.d.ts +3 -0
  20. package/dist/mastodon/index.js +3 -0
  21. package/dist/mastodon/mediaAttachment/audio.d.ts +87 -0
  22. package/dist/mastodon/mediaAttachment/audio.js +17 -0
  23. package/dist/mastodon/mediaAttachment/base.d.ts +24 -0
  24. package/dist/mastodon/mediaAttachment/base.js +26 -0
  25. package/dist/mastodon/mediaAttachment/gifv.d.ts +158 -0
  26. package/dist/mastodon/mediaAttachment/gifv.js +37 -0
  27. package/dist/mastodon/mediaAttachment/image.d.ts +142 -0
  28. package/dist/mastodon/mediaAttachment/image.js +30 -0
  29. package/dist/mastodon/mediaAttachment/index.d.ts +576 -0
  30. package/dist/mastodon/mediaAttachment/index.js +8 -0
  31. package/dist/mastodon/mediaAttachment/unknown.d.ts +28 -0
  32. package/dist/mastodon/mediaAttachment/unknown.js +8 -0
  33. package/dist/mastodon/mediaAttachment/video.d.ts +173 -0
  34. package/dist/mastodon/mediaAttachment/video.js +38 -0
  35. package/dist/mastodon/poll/index.d.ts +81 -0
  36. package/dist/mastodon/poll/index.js +27 -0
  37. package/dist/mastodon/poll/option.d.ts +12 -0
  38. package/dist/mastodon/poll/option.js +10 -0
  39. package/dist/mastodon/previewCard.d.ts +48 -0
  40. package/dist/mastodon/previewCard.js +34 -0
  41. package/dist/mastodon/status/application.d.ts +12 -0
  42. package/dist/mastodon/status/application.js +12 -0
  43. package/dist/mastodon/status/base.d.ts +1738 -0
  44. package/dist/mastodon/status/base.js +96 -0
  45. package/dist/mastodon/status/index.d.ts +4035 -0
  46. package/dist/mastodon/status/index.js +4 -0
  47. package/dist/mastodon/status/mention.d.ts +18 -0
  48. package/dist/mastodon/status/mention.js +12 -0
  49. package/dist/mastodon/status/tag.d.ts +12 -0
  50. package/dist/mastodon/status/tag.js +10 -0
  51. package/dist/mastodon/status/visibility.d.ts +3 -0
  52. package/dist/mastodon/status/visibility.js +3 -0
  53. package/dist/note/baseContent.d.ts +251 -0
  54. package/dist/note/baseContent.js +24 -0
  55. package/dist/note.d.ts +8 -7
  56. package/dist/note.js +1 -23
  57. package/dist/undo.d.ts +24 -243
  58. package/package.json +4 -4
  59. package/src/mastodon/filter/index.ts +31 -0
  60. package/src/mastodon/filter/keyword.ts +12 -0
  61. package/src/mastodon/filter/status.ts +10 -0
  62. package/src/mastodon/filterResult.ts +18 -0
  63. package/src/mastodon/mediaAttachment/audio.ts +19 -0
  64. package/src/mastodon/mediaAttachment/base.ts +34 -0
  65. package/src/mastodon/mediaAttachment/gifv.ts +41 -0
  66. package/src/mastodon/mediaAttachment/image.ts +32 -0
  67. package/src/mastodon/mediaAttachment/index.ts +10 -0
  68. package/src/mastodon/mediaAttachment/unknown.ts +12 -0
  69. package/src/mastodon/mediaAttachment/video.ts +43 -0
  70. package/src/mastodon/poll/index.ts +35 -0
  71. package/src/mastodon/poll/option.ts +13 -0
  72. package/src/mastodon/previewCard.ts +41 -0
  73. package/src/mastodon/status/application.ts +15 -0
  74. package/src/mastodon/status/base.ts +125 -0
  75. package/src/mastodon/status/index.ts +8 -0
  76. package/src/mastodon/status/mention.ts +15 -0
  77. package/src/mastodon/status/tag.ts +12 -0
  78. package/src/mastodon/status/visibility.ts +5 -0
@@ -0,0 +1,142 @@
1
+ import { z } from "zod";
2
+ export declare const Image: z.ZodObject<z.objectUtil.extendShape<{
3
+ id: z.ZodString;
4
+ url: z.ZodString;
5
+ preview_url: z.ZodString;
6
+ remote_url: z.ZodNullable<z.ZodString>;
7
+ description: z.ZodNullable<z.ZodString>;
8
+ bluehash: z.ZodString;
9
+ }, {
10
+ type: z.ZodLiteral<"image">;
11
+ meta: z.ZodObject<{
12
+ original: z.ZodObject<{
13
+ width: z.ZodNumber;
14
+ height: z.ZodNumber;
15
+ size: z.ZodString;
16
+ 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
+ }>;
28
+ small: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ width: z.ZodNumber;
30
+ height: z.ZodNumber;
31
+ size: z.ZodString;
32
+ 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
+ }>>>;
44
+ focus: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
+ x: z.ZodNumber;
46
+ 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
+ preview_url: string;
95
+ remote_url: string | null;
96
+ bluehash: string;
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
+ };
115
+ }, {
116
+ id: string;
117
+ type: "image";
118
+ url: string;
119
+ description: string | null;
120
+ preview_url: string;
121
+ remote_url: string | null;
122
+ bluehash: string;
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
+ };
141
+ }>;
142
+ export type Image = z.infer<typeof Image>;
@@ -0,0 +1,30 @@
1
+ // This schema is base on https://docs.joinmastodon.org/entities/MediaAttachment/#image
2
+ import { z } from "zod";
3
+ import { BaseMediaAttachment } from "./base.js";
4
+ export const Image = BaseMediaAttachment.extend({
5
+ type: z
6
+ .literal("image")
7
+ .describe("The type of the attachment (Static image)"),
8
+ meta: z.object({
9
+ original: z.object({
10
+ width: z.number(),
11
+ height: z.number(),
12
+ size: z.string(),
13
+ aspect: z.number(),
14
+ }),
15
+ small: z
16
+ .object({
17
+ width: z.number(),
18
+ height: z.number(),
19
+ size: z.string(),
20
+ aspect: z.number(),
21
+ })
22
+ .nullish(),
23
+ focus: z
24
+ .object({
25
+ x: z.number(),
26
+ y: z.number(),
27
+ })
28
+ .nullish(),
29
+ }),
30
+ });