Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { z } from "npm:zod";
export default z
.object({
$schema: z
.string()
.url()
.describe(
"link to the version of the schema that can validate the resume",
)
.optional(),
basics: z
.object({
name: z.string().optional(),
label: z.string().describe("e.g. Web Developer").optional(),
image: z
.string()
.describe("URL (as per RFC 3986) to a image in JPEG or PNG format")
.optional(),
email: z.string().email().describe("e.g. thomas@gmail.com").optional(),
phone: z
.string()
.describe(
"Phone numbers are stored as strings so use any format you like, e.g. 712-117-2923",
)
.optional(),
url: z
.string()
.url()
.describe(
"URL (as per RFC 3986) to your website, e.g. personal homepage",
)
.optional(),
summary: z
.string()
.describe("Write a short 2-3 sentence biography about yourself")
.optional(),
location: z
.object({
address: z
.string()
.describe(
"To add multiple address lines, use \n. For example, 1234 Glücklichkeit Straße\nHinterhaus 5. Etage li.",
)
.optional(),
postalCode: z.string().optional(),
city: z.string().optional(),
countryCode: z
.string()
.describe("code as per ISO-3166-1 ALPHA-2, e.g. US, AU, IN")
.optional(),
region: z
.string()
.describe(
"The general region where you live. Can be a US state, or a province, for instance.",
)
.optional(),
})
.catchall(z.any())
.optional(),
profiles: z
.array(
z
.object({
network: z
.string()
.describe("e.g. Facebook or Twitter")
.optional(),
username: z
.string()
.describe("e.g. neutralthoughts")
.optional(),
url: z
.string()
.url()
.describe("e.g. http://twitter.example.com/neutralthoughts")
.optional(),
})
.catchall(z.any()),
)
.describe(
"Specify any number of social networks that you participate in",
)
.optional(),
})
.catchall(z.any())
.optional(),
work: z
.array(
z
.object({
name: z.string().describe("e.g. Facebook").optional(),
location: z.string().describe("e.g. Menlo Park, CA").optional(),
description: z
.string()
.describe("e.g. Social Media Company")
.optional(),
position: z.string().describe("e.g. Software Engineer").optional(),
url: z
.string()
May 29, 2024