@llun/activities.schema 0.2.21 → 0.2.22
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.
- package/dist/cjs/mastodon/account/source.js +2 -8
- package/dist/cjs/mastodon/mediaAttachment/audio.js +4 -4
- package/dist/cjs/mastodon/mediaAttachment/base.js +8 -4
- package/dist/cjs/mastodon/mediaAttachment/gifv.js +10 -8
- package/dist/cjs/mastodon/mediaAttachment/image.js +4 -2
- package/dist/cjs/mastodon/mediaAttachment/video.js +13 -11
- package/dist/cjs/mastodon/status/base.js +1 -1
- package/dist/esm/mastodon/account/source.js +2 -8
- package/dist/esm/mastodon/mediaAttachment/audio.js +4 -4
- package/dist/esm/mastodon/mediaAttachment/base.js +8 -4
- package/dist/esm/mastodon/mediaAttachment/gifv.js +10 -8
- package/dist/esm/mastodon/mediaAttachment/image.js +4 -2
- package/dist/esm/mastodon/mediaAttachment/video.js +13 -11
- package/dist/esm/mastodon/status/base.js +1 -1
- package/dist/types/mastodon/account/source.d.ts +3 -3
- package/dist/types/mastodon/account.d.ts +12 -12
- package/dist/types/mastodon/mediaAttachment/audio.d.ts +28 -28
- package/dist/types/mastodon/mediaAttachment/base.d.ts +6 -6
- package/dist/types/mastodon/mediaAttachment/gifv.d.ts +48 -48
- package/dist/types/mastodon/mediaAttachment/image.d.ts +12 -12
- package/dist/types/mastodon/mediaAttachment/index.d.ts +157 -157
- package/dist/types/mastodon/mediaAttachment/unknown.d.ts +6 -6
- package/dist/types/mastodon/mediaAttachment/video.d.ts +63 -63
- package/dist/types/mastodon/status/base.d.ts +245 -245
- package/dist/types/mastodon/status/index.d.ts +566 -566
- package/package.json +1 -1
- package/src/mastodon/account/source.ts +4 -8
- package/src/mastodon/mediaAttachment/audio.ts +4 -4
- package/src/mastodon/mediaAttachment/base.ts +11 -7
- package/src/mastodon/mediaAttachment/gifv.ts +28 -26
- package/src/mastodon/mediaAttachment/image.ts +20 -18
- package/src/mastodon/mediaAttachment/video.ts +32 -30
- package/src/mastodon/status/base.ts +1 -1
- /package/dist/cjs/mastodon/{status/visibility.js → visibility.js} +0 -0
- /package/dist/esm/mastodon/{status/visibility.js → visibility.js} +0 -0
- /package/dist/types/mastodon/{status/visibility.d.ts → visibility.d.ts} +0 -0
- /package/src/mastodon/{status/visibility.ts → visibility.ts} +0 -0
|
@@ -4,19 +4,13 @@ exports.Source = void 0;
|
|
|
4
4
|
// This schema is base on https://docs.joinmastodon.org/entities/Account/#source
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const field_js_1 = require("./field.js");
|
|
7
|
+
const visibility_js_1 = require("../visibility.js");
|
|
7
8
|
exports.Source = zod_1.z.object({
|
|
8
9
|
note: zod_1.z.string({
|
|
9
10
|
description: "Profile bio, in plain-text instead of in HTML",
|
|
10
11
|
}),
|
|
11
12
|
fields: field_js_1.Field.array().describe("Metadata about the account"),
|
|
12
|
-
privacy:
|
|
13
|
-
.union([
|
|
14
|
-
zod_1.z.literal("public").describe("Public post"),
|
|
15
|
-
zod_1.z.literal("unlisted").describe("Unlisted post"),
|
|
16
|
-
zod_1.z.literal("private").describe("Followers-only post"),
|
|
17
|
-
zod_1.z.literal("direct").describe("Direct post"),
|
|
18
|
-
])
|
|
19
|
-
.describe("The default post privacy to be used for new statuses."),
|
|
13
|
+
privacy: visibility_js_1.Visibility.describe("The default post privacy to be used for new statuses."),
|
|
20
14
|
sensitive: zod_1.z.boolean({
|
|
21
15
|
description: "Whether new statuses should be marked sensitive by default",
|
|
22
16
|
}),
|
|
@@ -9,12 +9,12 @@ exports.Audio = base_js_1.BaseMediaAttachment.extend({
|
|
|
9
9
|
meta: zod_1.z.object({
|
|
10
10
|
length: zod_1.z.string(),
|
|
11
11
|
duration: zod_1.z.number(),
|
|
12
|
-
audio_encode: zod_1.z.string(),
|
|
13
|
-
audio_bitrate: zod_1.z.string(),
|
|
14
|
-
audio_channels: zod_1.z.string(),
|
|
12
|
+
audio_encode: zod_1.z.string().nullish(),
|
|
13
|
+
audio_bitrate: zod_1.z.string().nullish(),
|
|
14
|
+
audio_channels: zod_1.z.string().nullish(),
|
|
15
15
|
original: zod_1.z.object({
|
|
16
16
|
duration: zod_1.z.number(),
|
|
17
|
-
bitrate: zod_1.z.number(),
|
|
17
|
+
bitrate: zod_1.z.number().nullish(),
|
|
18
18
|
}),
|
|
19
19
|
}),
|
|
20
20
|
});
|
|
@@ -10,9 +10,11 @@ exports.BaseMediaAttachment = zod_1.z.object({
|
|
|
10
10
|
url: zod_1.z.string({
|
|
11
11
|
description: "The location of the original full-size attachment",
|
|
12
12
|
}),
|
|
13
|
-
preview_url: zod_1.z
|
|
13
|
+
preview_url: zod_1.z
|
|
14
|
+
.string({
|
|
14
15
|
description: "The location of a scaled-down preview of the attachment",
|
|
15
|
-
})
|
|
16
|
+
})
|
|
17
|
+
.nullable(),
|
|
16
18
|
remote_url: zod_1.z
|
|
17
19
|
.string({
|
|
18
20
|
description: "The location of the full-size original attachment on the remote website",
|
|
@@ -23,7 +25,9 @@ exports.BaseMediaAttachment = zod_1.z.object({
|
|
|
23
25
|
description: "Alternate text that describes what is in the media attachment, to be used for the visually impaired or when media attachments do not load",
|
|
24
26
|
})
|
|
25
27
|
.nullable(),
|
|
26
|
-
bluehash: zod_1.z
|
|
28
|
+
bluehash: zod_1.z
|
|
29
|
+
.string({
|
|
27
30
|
description: "hash computed by the [BlurHash algorithm](https://github.com/woltapp/blurhash), for generating colorful preview thumbnails when media has not been downloaded yet.",
|
|
28
|
-
})
|
|
31
|
+
})
|
|
32
|
+
.nullable(),
|
|
29
33
|
});
|
|
@@ -8,10 +8,11 @@ exports.Gifv = base_js_1.BaseMediaAttachment.extend({
|
|
|
8
8
|
type: zod_1.z
|
|
9
9
|
.literal("gifv")
|
|
10
10
|
.describe("The type of the attachment (Looping, soundless animation)"),
|
|
11
|
-
meta: zod_1.z
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
meta: zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
length: zod_1.z.string().nullish(),
|
|
14
|
+
duration: zod_1.z.number().nullish(),
|
|
15
|
+
fps: zod_1.z.number().nullish(),
|
|
15
16
|
size: zod_1.z.string({
|
|
16
17
|
description: "Video width and height in string wxh format",
|
|
17
18
|
}),
|
|
@@ -23,9 +24,9 @@ exports.Gifv = base_js_1.BaseMediaAttachment.extend({
|
|
|
23
24
|
original: zod_1.z.object({
|
|
24
25
|
width: zod_1.z.number(),
|
|
25
26
|
height: zod_1.z.number(),
|
|
26
|
-
frame_rate: zod_1.z.string(),
|
|
27
|
-
duration: zod_1.z.number(),
|
|
28
|
-
bitrate: zod_1.z.number(),
|
|
27
|
+
frame_rate: zod_1.z.string().nullish(),
|
|
28
|
+
duration: zod_1.z.number().nullish(),
|
|
29
|
+
bitrate: zod_1.z.number().nullish(),
|
|
29
30
|
}),
|
|
30
31
|
small: zod_1.z
|
|
31
32
|
.object({
|
|
@@ -36,5 +37,6 @@ exports.Gifv = base_js_1.BaseMediaAttachment.extend({
|
|
|
36
37
|
})
|
|
37
38
|
.describe("A video preview in static image")
|
|
38
39
|
.nullish(),
|
|
39
|
-
})
|
|
40
|
+
})
|
|
41
|
+
.nullish(),
|
|
40
42
|
});
|
|
@@ -8,7 +8,8 @@ exports.Image = base_js_1.BaseMediaAttachment.extend({
|
|
|
8
8
|
type: zod_1.z
|
|
9
9
|
.literal("image")
|
|
10
10
|
.describe("The type of the attachment (Static image)"),
|
|
11
|
-
meta: zod_1.z
|
|
11
|
+
meta: zod_1.z
|
|
12
|
+
.object({
|
|
12
13
|
original: zod_1.z.object({
|
|
13
14
|
width: zod_1.z.number(),
|
|
14
15
|
height: zod_1.z.number(),
|
|
@@ -29,5 +30,6 @@ exports.Image = base_js_1.BaseMediaAttachment.extend({
|
|
|
29
30
|
y: zod_1.z.number(),
|
|
30
31
|
})
|
|
31
32
|
.nullish(),
|
|
32
|
-
})
|
|
33
|
+
})
|
|
34
|
+
.nullish(),
|
|
33
35
|
});
|
|
@@ -6,10 +6,11 @@ const zod_1 = require("zod");
|
|
|
6
6
|
const base_js_1 = require("./base.js");
|
|
7
7
|
exports.Video = base_js_1.BaseMediaAttachment.extend({
|
|
8
8
|
type: zod_1.z.literal("video").describe("The type of the attachment (Video clip)"),
|
|
9
|
-
meta: zod_1.z
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
meta: zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
length: zod_1.z.string().nullish(),
|
|
12
|
+
duration: zod_1.z.number().nullish(),
|
|
13
|
+
fps: zod_1.z.number().nullish(),
|
|
13
14
|
size: zod_1.z.string({
|
|
14
15
|
description: "Video width and height in string wxh format",
|
|
15
16
|
}),
|
|
@@ -18,15 +19,15 @@ exports.Video = base_js_1.BaseMediaAttachment.extend({
|
|
|
18
19
|
aspect: zod_1.z.number({
|
|
19
20
|
description: "Aspect ratio of the video (width/height)",
|
|
20
21
|
}),
|
|
21
|
-
audio_encode: zod_1.z.string(),
|
|
22
|
-
audio_bitrate: zod_1.z.string(),
|
|
23
|
-
audio_channels: zod_1.z.string(),
|
|
22
|
+
audio_encode: zod_1.z.string().nullish(),
|
|
23
|
+
audio_bitrate: zod_1.z.string().nullish(),
|
|
24
|
+
audio_channels: zod_1.z.string().nullish(),
|
|
24
25
|
original: zod_1.z.object({
|
|
25
26
|
width: zod_1.z.number(),
|
|
26
27
|
height: zod_1.z.number(),
|
|
27
|
-
frame_rate: zod_1.z.string(),
|
|
28
|
-
duration: zod_1.z.number(),
|
|
29
|
-
bitrate: zod_1.z.number(),
|
|
28
|
+
frame_rate: zod_1.z.string().nullish(),
|
|
29
|
+
duration: zod_1.z.number().nullish(),
|
|
30
|
+
bitrate: zod_1.z.number().nullish(),
|
|
30
31
|
}),
|
|
31
32
|
small: zod_1.z
|
|
32
33
|
.object({
|
|
@@ -37,5 +38,6 @@ exports.Video = base_js_1.BaseMediaAttachment.extend({
|
|
|
37
38
|
})
|
|
38
39
|
.describe("A video preview in static image")
|
|
39
40
|
.nullish(),
|
|
40
|
-
})
|
|
41
|
+
})
|
|
42
|
+
.nullish(),
|
|
41
43
|
});
|
|
@@ -4,7 +4,7 @@ exports.BaseStatus = void 0;
|
|
|
4
4
|
// This schema is base on https://docs.joinmastodon.org/entities/Status/
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const account_js_1 = require("../account.js");
|
|
7
|
-
const visibility_js_1 = require("
|
|
7
|
+
const visibility_js_1 = require("../visibility.js");
|
|
8
8
|
const index_js_1 = require("../mediaAttachment/index.js");
|
|
9
9
|
const application_js_1 = require("./application.js");
|
|
10
10
|
const customEmoji_js_1 = require("../customEmoji.js");
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
// This schema is base on https://docs.joinmastodon.org/entities/Account/#source
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { Field } from "./field.js";
|
|
4
|
+
import { Visibility } from "../visibility.js";
|
|
4
5
|
export const Source = z.object({
|
|
5
6
|
note: z.string({
|
|
6
7
|
description: "Profile bio, in plain-text instead of in HTML",
|
|
7
8
|
}),
|
|
8
9
|
fields: Field.array().describe("Metadata about the account"),
|
|
9
|
-
privacy:
|
|
10
|
-
.union([
|
|
11
|
-
z.literal("public").describe("Public post"),
|
|
12
|
-
z.literal("unlisted").describe("Unlisted post"),
|
|
13
|
-
z.literal("private").describe("Followers-only post"),
|
|
14
|
-
z.literal("direct").describe("Direct post"),
|
|
15
|
-
])
|
|
16
|
-
.describe("The default post privacy to be used for new statuses."),
|
|
10
|
+
privacy: Visibility.describe("The default post privacy to be used for new statuses."),
|
|
17
11
|
sensitive: z.boolean({
|
|
18
12
|
description: "Whether new statuses should be marked sensitive by default",
|
|
19
13
|
}),
|
|
@@ -6,12 +6,12 @@ export const Audio = BaseMediaAttachment.extend({
|
|
|
6
6
|
meta: z.object({
|
|
7
7
|
length: z.string(),
|
|
8
8
|
duration: z.number(),
|
|
9
|
-
audio_encode: z.string(),
|
|
10
|
-
audio_bitrate: z.string(),
|
|
11
|
-
audio_channels: z.string(),
|
|
9
|
+
audio_encode: z.string().nullish(),
|
|
10
|
+
audio_bitrate: z.string().nullish(),
|
|
11
|
+
audio_channels: z.string().nullish(),
|
|
12
12
|
original: z.object({
|
|
13
13
|
duration: z.number(),
|
|
14
|
-
bitrate: z.number(),
|
|
14
|
+
bitrate: z.number().nullish(),
|
|
15
15
|
}),
|
|
16
16
|
}),
|
|
17
17
|
});
|
|
@@ -7,9 +7,11 @@ export const BaseMediaAttachment = z.object({
|
|
|
7
7
|
url: z.string({
|
|
8
8
|
description: "The location of the original full-size attachment",
|
|
9
9
|
}),
|
|
10
|
-
preview_url: z
|
|
10
|
+
preview_url: z
|
|
11
|
+
.string({
|
|
11
12
|
description: "The location of a scaled-down preview of the attachment",
|
|
12
|
-
})
|
|
13
|
+
})
|
|
14
|
+
.nullable(),
|
|
13
15
|
remote_url: z
|
|
14
16
|
.string({
|
|
15
17
|
description: "The location of the full-size original attachment on the remote website",
|
|
@@ -20,7 +22,9 @@ export const BaseMediaAttachment = z.object({
|
|
|
20
22
|
description: "Alternate text that describes what is in the media attachment, to be used for the visually impaired or when media attachments do not load",
|
|
21
23
|
})
|
|
22
24
|
.nullable(),
|
|
23
|
-
bluehash: z
|
|
25
|
+
bluehash: z
|
|
26
|
+
.string({
|
|
24
27
|
description: "hash computed by the [BlurHash algorithm](https://github.com/woltapp/blurhash), for generating colorful preview thumbnails when media has not been downloaded yet.",
|
|
25
|
-
})
|
|
28
|
+
})
|
|
29
|
+
.nullable(),
|
|
26
30
|
});
|
|
@@ -5,10 +5,11 @@ export const Gifv = BaseMediaAttachment.extend({
|
|
|
5
5
|
type: z
|
|
6
6
|
.literal("gifv")
|
|
7
7
|
.describe("The type of the attachment (Looping, soundless animation)"),
|
|
8
|
-
meta: z
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
meta: z
|
|
9
|
+
.object({
|
|
10
|
+
length: z.string().nullish(),
|
|
11
|
+
duration: z.number().nullish(),
|
|
12
|
+
fps: z.number().nullish(),
|
|
12
13
|
size: z.string({
|
|
13
14
|
description: "Video width and height in string wxh format",
|
|
14
15
|
}),
|
|
@@ -20,9 +21,9 @@ export const Gifv = BaseMediaAttachment.extend({
|
|
|
20
21
|
original: z.object({
|
|
21
22
|
width: z.number(),
|
|
22
23
|
height: z.number(),
|
|
23
|
-
frame_rate: z.string(),
|
|
24
|
-
duration: z.number(),
|
|
25
|
-
bitrate: z.number(),
|
|
24
|
+
frame_rate: z.string().nullish(),
|
|
25
|
+
duration: z.number().nullish(),
|
|
26
|
+
bitrate: z.number().nullish(),
|
|
26
27
|
}),
|
|
27
28
|
small: z
|
|
28
29
|
.object({
|
|
@@ -33,5 +34,6 @@ export const Gifv = BaseMediaAttachment.extend({
|
|
|
33
34
|
})
|
|
34
35
|
.describe("A video preview in static image")
|
|
35
36
|
.nullish(),
|
|
36
|
-
})
|
|
37
|
+
})
|
|
38
|
+
.nullish(),
|
|
37
39
|
});
|
|
@@ -5,7 +5,8 @@ export const Image = BaseMediaAttachment.extend({
|
|
|
5
5
|
type: z
|
|
6
6
|
.literal("image")
|
|
7
7
|
.describe("The type of the attachment (Static image)"),
|
|
8
|
-
meta: z
|
|
8
|
+
meta: z
|
|
9
|
+
.object({
|
|
9
10
|
original: z.object({
|
|
10
11
|
width: z.number(),
|
|
11
12
|
height: z.number(),
|
|
@@ -26,5 +27,6 @@ export const Image = BaseMediaAttachment.extend({
|
|
|
26
27
|
y: z.number(),
|
|
27
28
|
})
|
|
28
29
|
.nullish(),
|
|
29
|
-
})
|
|
30
|
+
})
|
|
31
|
+
.nullish(),
|
|
30
32
|
});
|
|
@@ -3,10 +3,11 @@ import { z } from "zod";
|
|
|
3
3
|
import { BaseMediaAttachment } from "./base.js";
|
|
4
4
|
export const Video = BaseMediaAttachment.extend({
|
|
5
5
|
type: z.literal("video").describe("The type of the attachment (Video clip)"),
|
|
6
|
-
meta: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
meta: z
|
|
7
|
+
.object({
|
|
8
|
+
length: z.string().nullish(),
|
|
9
|
+
duration: z.number().nullish(),
|
|
10
|
+
fps: z.number().nullish(),
|
|
10
11
|
size: z.string({
|
|
11
12
|
description: "Video width and height in string wxh format",
|
|
12
13
|
}),
|
|
@@ -15,15 +16,15 @@ export const Video = BaseMediaAttachment.extend({
|
|
|
15
16
|
aspect: z.number({
|
|
16
17
|
description: "Aspect ratio of the video (width/height)",
|
|
17
18
|
}),
|
|
18
|
-
audio_encode: z.string(),
|
|
19
|
-
audio_bitrate: z.string(),
|
|
20
|
-
audio_channels: z.string(),
|
|
19
|
+
audio_encode: z.string().nullish(),
|
|
20
|
+
audio_bitrate: z.string().nullish(),
|
|
21
|
+
audio_channels: z.string().nullish(),
|
|
21
22
|
original: z.object({
|
|
22
23
|
width: z.number(),
|
|
23
24
|
height: z.number(),
|
|
24
|
-
frame_rate: z.string(),
|
|
25
|
-
duration: z.number(),
|
|
26
|
-
bitrate: z.number(),
|
|
25
|
+
frame_rate: z.string().nullish(),
|
|
26
|
+
duration: z.number().nullish(),
|
|
27
|
+
bitrate: z.number().nullish(),
|
|
27
28
|
}),
|
|
28
29
|
small: z
|
|
29
30
|
.object({
|
|
@@ -34,5 +35,6 @@ export const Video = BaseMediaAttachment.extend({
|
|
|
34
35
|
})
|
|
35
36
|
.describe("A video preview in static image")
|
|
36
37
|
.nullish(),
|
|
37
|
-
})
|
|
38
|
+
})
|
|
39
|
+
.nullish(),
|
|
38
40
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This schema is base on https://docs.joinmastodon.org/entities/Status/
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { Account } from "../account.js";
|
|
4
|
-
import { Visibility } from "
|
|
4
|
+
import { Visibility } from "../visibility.js";
|
|
5
5
|
import { MediaAttachment } from "../mediaAttachment/index.js";
|
|
6
6
|
import { Application } from "./application.js";
|
|
7
7
|
import { CustomEmoji } from "../customEmoji.js";
|
|
@@ -14,7 +14,7 @@ export declare const Source: z.ZodObject<{
|
|
|
14
14
|
name: string;
|
|
15
15
|
verified_at: string | null;
|
|
16
16
|
}>, "many">;
|
|
17
|
-
privacy: z.
|
|
17
|
+
privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
18
18
|
sensitive: z.ZodBoolean;
|
|
19
19
|
language: z.ZodString;
|
|
20
20
|
follow_requests_count: z.ZodNumber;
|
|
@@ -25,7 +25,7 @@ export declare const Source: z.ZodObject<{
|
|
|
25
25
|
name: string;
|
|
26
26
|
verified_at: string | null;
|
|
27
27
|
}[];
|
|
28
|
-
privacy: "public" | "
|
|
28
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
29
29
|
sensitive: boolean;
|
|
30
30
|
language: string;
|
|
31
31
|
follow_requests_count: number;
|
|
@@ -36,7 +36,7 @@ export declare const Source: z.ZodObject<{
|
|
|
36
36
|
name: string;
|
|
37
37
|
verified_at: string | null;
|
|
38
38
|
}[];
|
|
39
|
-
privacy: "public" | "
|
|
39
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
40
40
|
sensitive: boolean;
|
|
41
41
|
language: string;
|
|
42
42
|
follow_requests_count: number;
|
|
@@ -27,7 +27,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
27
27
|
name: string;
|
|
28
28
|
verified_at: string | null;
|
|
29
29
|
}>, "many">;
|
|
30
|
-
privacy: z.
|
|
30
|
+
privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
31
31
|
sensitive: z.ZodBoolean;
|
|
32
32
|
language: z.ZodString;
|
|
33
33
|
follow_requests_count: z.ZodNumber;
|
|
@@ -38,7 +38,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
38
38
|
name: string;
|
|
39
39
|
verified_at: string | null;
|
|
40
40
|
}[];
|
|
41
|
-
privacy: "public" | "
|
|
41
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
42
42
|
sensitive: boolean;
|
|
43
43
|
language: string;
|
|
44
44
|
follow_requests_count: number;
|
|
@@ -49,7 +49,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
49
49
|
name: string;
|
|
50
50
|
verified_at: string | null;
|
|
51
51
|
}[];
|
|
52
|
-
privacy: "public" | "
|
|
52
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
53
53
|
sensitive: boolean;
|
|
54
54
|
language: string;
|
|
55
55
|
follow_requests_count: number;
|
|
@@ -126,7 +126,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
126
126
|
name: string;
|
|
127
127
|
verified_at: string | null;
|
|
128
128
|
}>, "many">;
|
|
129
|
-
privacy: z.
|
|
129
|
+
privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
130
130
|
sensitive: z.ZodBoolean;
|
|
131
131
|
language: z.ZodString;
|
|
132
132
|
follow_requests_count: z.ZodNumber;
|
|
@@ -137,7 +137,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
137
137
|
name: string;
|
|
138
138
|
verified_at: string | null;
|
|
139
139
|
}[];
|
|
140
|
-
privacy: "public" | "
|
|
140
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
141
141
|
sensitive: boolean;
|
|
142
142
|
language: string;
|
|
143
143
|
follow_requests_count: number;
|
|
@@ -148,7 +148,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
148
148
|
name: string;
|
|
149
149
|
verified_at: string | null;
|
|
150
150
|
}[];
|
|
151
|
-
privacy: "public" | "
|
|
151
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
152
152
|
sensitive: boolean;
|
|
153
153
|
language: string;
|
|
154
154
|
follow_requests_count: number;
|
|
@@ -221,7 +221,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
221
221
|
name: string;
|
|
222
222
|
verified_at: string | null;
|
|
223
223
|
}[];
|
|
224
|
-
privacy: "public" | "
|
|
224
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
225
225
|
sensitive: boolean;
|
|
226
226
|
language: string;
|
|
227
227
|
follow_requests_count: number;
|
|
@@ -269,7 +269,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
269
269
|
name: string;
|
|
270
270
|
verified_at: string | null;
|
|
271
271
|
}[];
|
|
272
|
-
privacy: "public" | "
|
|
272
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
273
273
|
sensitive: boolean;
|
|
274
274
|
language: string;
|
|
275
275
|
follow_requests_count: number;
|
|
@@ -318,7 +318,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
318
318
|
name: string;
|
|
319
319
|
verified_at: string | null;
|
|
320
320
|
}[];
|
|
321
|
-
privacy: "public" | "
|
|
321
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
322
322
|
sensitive: boolean;
|
|
323
323
|
language: string;
|
|
324
324
|
follow_requests_count: number;
|
|
@@ -366,7 +366,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
366
366
|
name: string;
|
|
367
367
|
verified_at: string | null;
|
|
368
368
|
}[];
|
|
369
|
-
privacy: "public" | "
|
|
369
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
370
370
|
sensitive: boolean;
|
|
371
371
|
language: string;
|
|
372
372
|
follow_requests_count: number;
|
|
@@ -415,7 +415,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
415
415
|
name: string;
|
|
416
416
|
verified_at: string | null;
|
|
417
417
|
}[];
|
|
418
|
-
privacy: "public" | "
|
|
418
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
419
419
|
sensitive: boolean;
|
|
420
420
|
language: string;
|
|
421
421
|
follow_requests_count: number;
|
|
@@ -463,7 +463,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
463
463
|
name: string;
|
|
464
464
|
verified_at: string | null;
|
|
465
465
|
}[];
|
|
466
|
-
privacy: "public" | "
|
|
466
|
+
privacy: "public" | "unlist" | "private" | "direct";
|
|
467
467
|
sensitive: boolean;
|
|
468
468
|
language: string;
|
|
469
469
|
follow_requests_count: number;
|
|
@@ -2,86 +2,86 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const Audio: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
url: z.ZodString;
|
|
5
|
-
preview_url: z.ZodString
|
|
5
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
6
6
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
7
7
|
description: z.ZodNullable<z.ZodString>;
|
|
8
|
-
bluehash: z.ZodString
|
|
8
|
+
bluehash: z.ZodNullable<z.ZodString>;
|
|
9
9
|
}, {
|
|
10
10
|
type: z.ZodLiteral<"audio">;
|
|
11
11
|
meta: z.ZodObject<{
|
|
12
12
|
length: z.ZodString;
|
|
13
13
|
duration: z.ZodNumber;
|
|
14
|
-
audio_encode: z.ZodString
|
|
15
|
-
audio_bitrate: z.ZodString
|
|
16
|
-
audio_channels: z.ZodString
|
|
14
|
+
audio_encode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
audio_bitrate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
audio_channels: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
original: z.ZodObject<{
|
|
18
18
|
duration: z.ZodNumber;
|
|
19
|
-
bitrate: z.ZodNumber
|
|
19
|
+
bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
duration: number;
|
|
22
|
-
bitrate
|
|
22
|
+
bitrate?: number | null | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
duration: number;
|
|
25
|
-
bitrate
|
|
25
|
+
bitrate?: number | null | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
length: string;
|
|
29
29
|
duration: number;
|
|
30
30
|
original: {
|
|
31
31
|
duration: number;
|
|
32
|
-
bitrate
|
|
32
|
+
bitrate?: number | null | undefined;
|
|
33
33
|
};
|
|
34
|
-
audio_encode
|
|
35
|
-
audio_bitrate
|
|
36
|
-
audio_channels
|
|
34
|
+
audio_encode?: string | null | undefined;
|
|
35
|
+
audio_bitrate?: string | null | undefined;
|
|
36
|
+
audio_channels?: string | null | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
length: string;
|
|
39
39
|
duration: number;
|
|
40
40
|
original: {
|
|
41
41
|
duration: number;
|
|
42
|
-
bitrate
|
|
42
|
+
bitrate?: number | null | undefined;
|
|
43
43
|
};
|
|
44
|
-
audio_encode
|
|
45
|
-
audio_bitrate
|
|
46
|
-
audio_channels
|
|
44
|
+
audio_encode?: string | null | undefined;
|
|
45
|
+
audio_bitrate?: string | null | undefined;
|
|
46
|
+
audio_channels?: string | null | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
}>, "strip", z.ZodTypeAny, {
|
|
49
49
|
id: string;
|
|
50
50
|
type: "audio";
|
|
51
51
|
description: string | null;
|
|
52
52
|
url: string;
|
|
53
|
-
preview_url: string;
|
|
53
|
+
preview_url: string | null;
|
|
54
54
|
remote_url: string | null;
|
|
55
|
-
bluehash: string;
|
|
55
|
+
bluehash: string | null;
|
|
56
56
|
meta: {
|
|
57
57
|
length: string;
|
|
58
58
|
duration: number;
|
|
59
59
|
original: {
|
|
60
60
|
duration: number;
|
|
61
|
-
bitrate
|
|
61
|
+
bitrate?: number | null | undefined;
|
|
62
62
|
};
|
|
63
|
-
audio_encode
|
|
64
|
-
audio_bitrate
|
|
65
|
-
audio_channels
|
|
63
|
+
audio_encode?: string | null | undefined;
|
|
64
|
+
audio_bitrate?: string | null | undefined;
|
|
65
|
+
audio_channels?: string | null | undefined;
|
|
66
66
|
};
|
|
67
67
|
}, {
|
|
68
68
|
id: string;
|
|
69
69
|
type: "audio";
|
|
70
70
|
description: string | null;
|
|
71
71
|
url: string;
|
|
72
|
-
preview_url: string;
|
|
72
|
+
preview_url: string | null;
|
|
73
73
|
remote_url: string | null;
|
|
74
|
-
bluehash: string;
|
|
74
|
+
bluehash: string | null;
|
|
75
75
|
meta: {
|
|
76
76
|
length: string;
|
|
77
77
|
duration: number;
|
|
78
78
|
original: {
|
|
79
79
|
duration: number;
|
|
80
|
-
bitrate
|
|
80
|
+
bitrate?: number | null | undefined;
|
|
81
81
|
};
|
|
82
|
-
audio_encode
|
|
83
|
-
audio_bitrate
|
|
84
|
-
audio_channels
|
|
82
|
+
audio_encode?: string | null | undefined;
|
|
83
|
+
audio_bitrate?: string | null | undefined;
|
|
84
|
+
audio_channels?: string | null | undefined;
|
|
85
85
|
};
|
|
86
86
|
}>;
|
|
87
87
|
export type Audio = z.infer<typeof Audio>;
|
|
@@ -2,23 +2,23 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const BaseMediaAttachment: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
url: z.ZodString;
|
|
5
|
-
preview_url: z.ZodString
|
|
5
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
6
6
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
7
7
|
description: z.ZodNullable<z.ZodString>;
|
|
8
|
-
bluehash: z.ZodString
|
|
8
|
+
bluehash: z.ZodNullable<z.ZodString>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: string;
|
|
11
11
|
description: string | null;
|
|
12
12
|
url: string;
|
|
13
|
-
preview_url: string;
|
|
13
|
+
preview_url: string | null;
|
|
14
14
|
remote_url: string | null;
|
|
15
|
-
bluehash: string;
|
|
15
|
+
bluehash: string | null;
|
|
16
16
|
}, {
|
|
17
17
|
id: string;
|
|
18
18
|
description: string | null;
|
|
19
19
|
url: string;
|
|
20
|
-
preview_url: string;
|
|
20
|
+
preview_url: string | null;
|
|
21
21
|
remote_url: string | null;
|
|
22
|
-
bluehash: string;
|
|
22
|
+
bluehash: string | null;
|
|
23
23
|
}>;
|
|
24
24
|
export type BaseMediaAttachment = z.infer<typeof BaseMediaAttachment>;
|