@farcaster/frame-core 0.0.0-canary-20250630153244 → 0.0.0-canary-20250630194123
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/schemas/embeds.d.ts +26 -197
- package/dist/schemas/embeds.js +9 -9
- package/dist/schemas/events.d.ts +18 -106
- package/dist/schemas/events.js +10 -10
- package/dist/schemas/manifest.d.ts +147 -335
- package/dist/schemas/manifest.js +16 -16
- package/dist/schemas/notifications.d.ts +10 -48
- package/dist/schemas/notifications.js +14 -14
- package/dist/schemas/shared.d.ts +7 -23
- package/dist/schemas/shared.js +18 -18
- package/esm/schemas/embeds.d.ts +26 -197
- package/esm/schemas/embeds.js +1 -1
- package/esm/schemas/events.d.ts +18 -106
- package/esm/schemas/events.js +1 -1
- package/esm/schemas/manifest.d.ts +147 -335
- package/esm/schemas/manifest.js +1 -1
- package/esm/schemas/notifications.d.ts +10 -48
- package/esm/schemas/notifications.js +1 -1
- package/esm/schemas/shared.d.ts +7 -23
- package/esm/schemas/shared.js +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/schemas/embeds.ts +1 -1
- package/src/schemas/events.ts +1 -1
- package/src/schemas/manifest.ts +1 -1
- package/src/schemas/notifications.ts +1 -1
- package/src/schemas/shared.ts +1 -1
|
@@ -1,348 +1,160 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const domainFrameConfigSchema: z.
|
|
3
|
-
version: z.ZodUnion<[z.ZodLiteral<"0.0.0">, z.ZodLiteral<"0.0.1">, z.ZodLiteral<"1">, z.ZodLiteral<"next">]>;
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const domainFrameConfigSchema: z.ZodObject<{
|
|
3
|
+
version: z.ZodUnion<readonly [z.ZodLiteral<"0.0.0">, z.ZodLiteral<"0.0.1">, z.ZodLiteral<"1">, z.ZodLiteral<"next">]>;
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
iconUrl: z.
|
|
6
|
-
homeUrl: z.
|
|
7
|
-
|
|
8
|
-
imageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
9
|
-
/** deprecated, will rely on fc:frame meta tag */
|
|
5
|
+
iconUrl: z.ZodString;
|
|
6
|
+
homeUrl: z.ZodString;
|
|
7
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
10
8
|
buttonTitle: z.ZodOptional<z.ZodString>;
|
|
11
|
-
splashImageUrl: z.ZodOptional<z.
|
|
9
|
+
splashImageUrl: z.ZodOptional<z.ZodString>;
|
|
12
10
|
splashBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
13
|
-
webhookUrl: z.ZodOptional<z.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
12
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
screenshotUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
primaryCategory: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
games: "games";
|
|
17
|
+
social: "social";
|
|
18
|
+
finance: "finance";
|
|
19
|
+
utility: "utility";
|
|
20
|
+
productivity: "productivity";
|
|
21
|
+
"health-fitness": "health-fitness";
|
|
22
|
+
"news-media": "news-media";
|
|
23
|
+
music: "music";
|
|
24
|
+
shopping: "shopping";
|
|
25
|
+
education: "education";
|
|
26
|
+
"developer-tools": "developer-tools";
|
|
27
|
+
entertainment: "entertainment";
|
|
28
|
+
"art-creativity": "art-creativity";
|
|
29
|
+
}>>;
|
|
30
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
heroImageUrl: z.ZodOptional<z.ZodString>;
|
|
32
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
33
|
+
ogTitle: z.ZodOptional<z.ZodString>;
|
|
34
|
+
ogDescription: z.ZodOptional<z.ZodString>;
|
|
35
|
+
ogImageUrl: z.ZodOptional<z.ZodString>;
|
|
26
36
|
noindex: z.ZodOptional<z.ZodBoolean>;
|
|
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
|
-
buttonTitle?: string | undefined;
|
|
69
|
-
webhookUrl?: string | undefined;
|
|
70
|
-
subtitle?: string | undefined;
|
|
71
|
-
description?: string | undefined;
|
|
72
|
-
screenshotUrls?: string[] | undefined;
|
|
73
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
74
|
-
tags?: string[] | undefined;
|
|
75
|
-
heroImageUrl?: string | undefined;
|
|
76
|
-
tagline?: string | undefined;
|
|
77
|
-
ogTitle?: string | undefined;
|
|
78
|
-
ogDescription?: string | undefined;
|
|
79
|
-
ogImageUrl?: string | undefined;
|
|
80
|
-
noindex?: boolean | undefined;
|
|
81
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
82
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
83
|
-
castShareUrl?: string | undefined;
|
|
84
|
-
canonicalDomain?: string | undefined;
|
|
85
|
-
}>, {
|
|
86
|
-
name: string;
|
|
87
|
-
version: "1" | "next" | "0.0.0" | "0.0.1";
|
|
88
|
-
iconUrl: string;
|
|
89
|
-
homeUrl: string;
|
|
90
|
-
splashImageUrl?: string | undefined;
|
|
91
|
-
splashBackgroundColor?: string | undefined;
|
|
92
|
-
imageUrl?: string | undefined;
|
|
93
|
-
buttonTitle?: string | undefined;
|
|
94
|
-
webhookUrl?: string | undefined;
|
|
95
|
-
subtitle?: string | undefined;
|
|
96
|
-
description?: string | undefined;
|
|
97
|
-
screenshotUrls?: string[] | undefined;
|
|
98
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
99
|
-
tags?: string[] | undefined;
|
|
100
|
-
heroImageUrl?: string | undefined;
|
|
101
|
-
tagline?: string | undefined;
|
|
102
|
-
ogTitle?: string | undefined;
|
|
103
|
-
ogDescription?: string | undefined;
|
|
104
|
-
ogImageUrl?: string | undefined;
|
|
105
|
-
noindex?: boolean | undefined;
|
|
106
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
107
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
108
|
-
castShareUrl?: string | undefined;
|
|
109
|
-
canonicalDomain?: string | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
name: string;
|
|
112
|
-
version: "1" | "next" | "0.0.0" | "0.0.1";
|
|
113
|
-
iconUrl: string;
|
|
114
|
-
homeUrl: string;
|
|
115
|
-
splashImageUrl?: string | undefined;
|
|
116
|
-
splashBackgroundColor?: string | undefined;
|
|
117
|
-
imageUrl?: string | undefined;
|
|
118
|
-
buttonTitle?: string | undefined;
|
|
119
|
-
webhookUrl?: string | undefined;
|
|
120
|
-
subtitle?: string | undefined;
|
|
121
|
-
description?: string | undefined;
|
|
122
|
-
screenshotUrls?: string[] | undefined;
|
|
123
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
124
|
-
tags?: string[] | undefined;
|
|
125
|
-
heroImageUrl?: string | undefined;
|
|
126
|
-
tagline?: string | undefined;
|
|
127
|
-
ogTitle?: string | undefined;
|
|
128
|
-
ogDescription?: string | undefined;
|
|
129
|
-
ogImageUrl?: string | undefined;
|
|
130
|
-
noindex?: boolean | undefined;
|
|
131
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
132
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
133
|
-
castShareUrl?: string | undefined;
|
|
134
|
-
canonicalDomain?: string | undefined;
|
|
135
|
-
}>;
|
|
37
|
+
requiredChains: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
38
|
+
"eip155:1": "eip155:1";
|
|
39
|
+
"eip155:8453": "eip155:8453";
|
|
40
|
+
"eip155:42161": "eip155:42161";
|
|
41
|
+
"eip155:421614": "eip155:421614";
|
|
42
|
+
"eip155:84532": "eip155:84532";
|
|
43
|
+
"eip155:666666666": "eip155:666666666";
|
|
44
|
+
"eip155:100": "eip155:100";
|
|
45
|
+
"eip155:10": "eip155:10";
|
|
46
|
+
"eip155:11155420": "eip155:11155420";
|
|
47
|
+
"eip155:137": "eip155:137";
|
|
48
|
+
"eip155:11155111": "eip155:11155111";
|
|
49
|
+
"eip155:7777777": "eip155:7777777";
|
|
50
|
+
"eip155:130": "eip155:130";
|
|
51
|
+
"eip155:10143": "eip155:10143";
|
|
52
|
+
"eip155:42220": "eip155:42220";
|
|
53
|
+
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
54
|
+
}>>, z.ZodTransform<("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[], ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[]>>>;
|
|
55
|
+
requiredCapabilities: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
56
|
+
"wallet.getEthereumProvider": "wallet.getEthereumProvider";
|
|
57
|
+
"wallet.getSolanaProvider": "wallet.getSolanaProvider";
|
|
58
|
+
"actions.ready": "actions.ready";
|
|
59
|
+
"actions.openUrl": "actions.openUrl";
|
|
60
|
+
"actions.close": "actions.close";
|
|
61
|
+
"actions.setPrimaryButton": "actions.setPrimaryButton";
|
|
62
|
+
"actions.addMiniApp": "actions.addMiniApp";
|
|
63
|
+
"actions.signIn": "actions.signIn";
|
|
64
|
+
"actions.viewCast": "actions.viewCast";
|
|
65
|
+
"actions.viewProfile": "actions.viewProfile";
|
|
66
|
+
"actions.composeCast": "actions.composeCast";
|
|
67
|
+
"actions.viewToken": "actions.viewToken";
|
|
68
|
+
"actions.sendToken": "actions.sendToken";
|
|
69
|
+
"actions.swapToken": "actions.swapToken";
|
|
70
|
+
"haptics.impactOccurred": "haptics.impactOccurred";
|
|
71
|
+
"haptics.notificationOccurred": "haptics.notificationOccurred";
|
|
72
|
+
"haptics.selectionChanged": "haptics.selectionChanged";
|
|
73
|
+
back: "back";
|
|
74
|
+
}>>, z.ZodTransform<("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[], ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[]>>>;
|
|
75
|
+
castShareUrl: z.ZodOptional<z.ZodString>;
|
|
76
|
+
canonicalDomain: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>;
|
|
136
78
|
export declare const domainManifestSchema: z.ZodObject<{
|
|
137
79
|
accountAssociation: z.ZodObject<{
|
|
138
80
|
header: z.ZodString;
|
|
139
81
|
payload: z.ZodString;
|
|
140
82
|
signature: z.ZodString;
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
signature: string;
|
|
145
|
-
}, {
|
|
146
|
-
header: string;
|
|
147
|
-
payload: string;
|
|
148
|
-
signature: string;
|
|
149
|
-
}>;
|
|
150
|
-
frame: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
151
|
-
version: z.ZodUnion<[z.ZodLiteral<"0.0.0">, z.ZodLiteral<"0.0.1">, z.ZodLiteral<"1">, z.ZodLiteral<"next">]>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
version: z.ZodUnion<readonly [z.ZodLiteral<"0.0.0">, z.ZodLiteral<"0.0.1">, z.ZodLiteral<"1">, z.ZodLiteral<"next">]>;
|
|
152
86
|
name: z.ZodString;
|
|
153
|
-
iconUrl: z.
|
|
154
|
-
homeUrl: z.
|
|
155
|
-
|
|
156
|
-
imageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
157
|
-
/** deprecated, will rely on fc:frame meta tag */
|
|
87
|
+
iconUrl: z.ZodString;
|
|
88
|
+
homeUrl: z.ZodString;
|
|
89
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
158
90
|
buttonTitle: z.ZodOptional<z.ZodString>;
|
|
159
|
-
splashImageUrl: z.ZodOptional<z.
|
|
91
|
+
splashImageUrl: z.ZodOptional<z.ZodString>;
|
|
160
92
|
splashBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
161
|
-
webhookUrl: z.ZodOptional<z.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
93
|
+
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
94
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
95
|
+
description: z.ZodOptional<z.ZodString>;
|
|
96
|
+
screenshotUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
97
|
+
primaryCategory: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
games: "games";
|
|
99
|
+
social: "social";
|
|
100
|
+
finance: "finance";
|
|
101
|
+
utility: "utility";
|
|
102
|
+
productivity: "productivity";
|
|
103
|
+
"health-fitness": "health-fitness";
|
|
104
|
+
"news-media": "news-media";
|
|
105
|
+
music: "music";
|
|
106
|
+
shopping: "shopping";
|
|
107
|
+
education: "education";
|
|
108
|
+
"developer-tools": "developer-tools";
|
|
109
|
+
entertainment: "entertainment";
|
|
110
|
+
"art-creativity": "art-creativity";
|
|
111
|
+
}>>;
|
|
112
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
|
+
heroImageUrl: z.ZodOptional<z.ZodString>;
|
|
114
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
115
|
+
ogTitle: z.ZodOptional<z.ZodString>;
|
|
116
|
+
ogDescription: z.ZodOptional<z.ZodString>;
|
|
117
|
+
ogImageUrl: z.ZodOptional<z.ZodString>;
|
|
174
118
|
noindex: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
webhookUrl?: string | undefined;
|
|
218
|
-
subtitle?: string | undefined;
|
|
219
|
-
description?: string | undefined;
|
|
220
|
-
screenshotUrls?: string[] | undefined;
|
|
221
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
222
|
-
tags?: string[] | undefined;
|
|
223
|
-
heroImageUrl?: string | undefined;
|
|
224
|
-
tagline?: string | undefined;
|
|
225
|
-
ogTitle?: string | undefined;
|
|
226
|
-
ogDescription?: string | undefined;
|
|
227
|
-
ogImageUrl?: string | undefined;
|
|
228
|
-
noindex?: boolean | undefined;
|
|
229
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
230
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
231
|
-
castShareUrl?: string | undefined;
|
|
232
|
-
canonicalDomain?: string | undefined;
|
|
233
|
-
}>, {
|
|
234
|
-
name: string;
|
|
235
|
-
version: "1" | "next" | "0.0.0" | "0.0.1";
|
|
236
|
-
iconUrl: string;
|
|
237
|
-
homeUrl: string;
|
|
238
|
-
splashImageUrl?: string | undefined;
|
|
239
|
-
splashBackgroundColor?: string | undefined;
|
|
240
|
-
imageUrl?: string | undefined;
|
|
241
|
-
buttonTitle?: string | undefined;
|
|
242
|
-
webhookUrl?: string | undefined;
|
|
243
|
-
subtitle?: string | undefined;
|
|
244
|
-
description?: string | undefined;
|
|
245
|
-
screenshotUrls?: string[] | undefined;
|
|
246
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
247
|
-
tags?: string[] | undefined;
|
|
248
|
-
heroImageUrl?: string | undefined;
|
|
249
|
-
tagline?: string | undefined;
|
|
250
|
-
ogTitle?: string | undefined;
|
|
251
|
-
ogDescription?: string | undefined;
|
|
252
|
-
ogImageUrl?: string | undefined;
|
|
253
|
-
noindex?: boolean | undefined;
|
|
254
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
255
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
256
|
-
castShareUrl?: string | undefined;
|
|
257
|
-
canonicalDomain?: string | undefined;
|
|
258
|
-
}, {
|
|
259
|
-
name: string;
|
|
260
|
-
version: "1" | "next" | "0.0.0" | "0.0.1";
|
|
261
|
-
iconUrl: string;
|
|
262
|
-
homeUrl: string;
|
|
263
|
-
splashImageUrl?: string | undefined;
|
|
264
|
-
splashBackgroundColor?: string | undefined;
|
|
265
|
-
imageUrl?: string | undefined;
|
|
266
|
-
buttonTitle?: string | undefined;
|
|
267
|
-
webhookUrl?: string | undefined;
|
|
268
|
-
subtitle?: string | undefined;
|
|
269
|
-
description?: string | undefined;
|
|
270
|
-
screenshotUrls?: string[] | undefined;
|
|
271
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
272
|
-
tags?: string[] | undefined;
|
|
273
|
-
heroImageUrl?: string | undefined;
|
|
274
|
-
tagline?: string | undefined;
|
|
275
|
-
ogTitle?: string | undefined;
|
|
276
|
-
ogDescription?: string | undefined;
|
|
277
|
-
ogImageUrl?: string | undefined;
|
|
278
|
-
noindex?: boolean | undefined;
|
|
279
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
280
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
281
|
-
castShareUrl?: string | undefined;
|
|
282
|
-
canonicalDomain?: string | undefined;
|
|
283
|
-
}>>;
|
|
284
|
-
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
accountAssociation: {
|
|
286
|
-
header: string;
|
|
287
|
-
payload: string;
|
|
288
|
-
signature: string;
|
|
289
|
-
};
|
|
290
|
-
frame?: {
|
|
291
|
-
name: string;
|
|
292
|
-
version: "1" | "next" | "0.0.0" | "0.0.1";
|
|
293
|
-
iconUrl: string;
|
|
294
|
-
homeUrl: string;
|
|
295
|
-
splashImageUrl?: string | undefined;
|
|
296
|
-
splashBackgroundColor?: string | undefined;
|
|
297
|
-
imageUrl?: string | undefined;
|
|
298
|
-
buttonTitle?: string | undefined;
|
|
299
|
-
webhookUrl?: string | undefined;
|
|
300
|
-
subtitle?: string | undefined;
|
|
301
|
-
description?: string | undefined;
|
|
302
|
-
screenshotUrls?: string[] | undefined;
|
|
303
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
304
|
-
tags?: string[] | undefined;
|
|
305
|
-
heroImageUrl?: string | undefined;
|
|
306
|
-
tagline?: string | undefined;
|
|
307
|
-
ogTitle?: string | undefined;
|
|
308
|
-
ogDescription?: string | undefined;
|
|
309
|
-
ogImageUrl?: string | undefined;
|
|
310
|
-
noindex?: boolean | undefined;
|
|
311
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
312
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
313
|
-
castShareUrl?: string | undefined;
|
|
314
|
-
canonicalDomain?: string | undefined;
|
|
315
|
-
} | undefined;
|
|
316
|
-
}, {
|
|
317
|
-
accountAssociation: {
|
|
318
|
-
header: string;
|
|
319
|
-
payload: string;
|
|
320
|
-
signature: string;
|
|
321
|
-
};
|
|
322
|
-
frame?: {
|
|
323
|
-
name: string;
|
|
324
|
-
version: "1" | "next" | "0.0.0" | "0.0.1";
|
|
325
|
-
iconUrl: string;
|
|
326
|
-
homeUrl: string;
|
|
327
|
-
splashImageUrl?: string | undefined;
|
|
328
|
-
splashBackgroundColor?: string | undefined;
|
|
329
|
-
imageUrl?: string | undefined;
|
|
330
|
-
buttonTitle?: string | undefined;
|
|
331
|
-
webhookUrl?: string | undefined;
|
|
332
|
-
subtitle?: string | undefined;
|
|
333
|
-
description?: string | undefined;
|
|
334
|
-
screenshotUrls?: string[] | undefined;
|
|
335
|
-
primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
|
|
336
|
-
tags?: string[] | undefined;
|
|
337
|
-
heroImageUrl?: string | undefined;
|
|
338
|
-
tagline?: string | undefined;
|
|
339
|
-
ogTitle?: string | undefined;
|
|
340
|
-
ogDescription?: string | undefined;
|
|
341
|
-
ogImageUrl?: string | undefined;
|
|
342
|
-
noindex?: boolean | undefined;
|
|
343
|
-
requiredChains?: ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[] | undefined;
|
|
344
|
-
requiredCapabilities?: ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[] | undefined;
|
|
345
|
-
castShareUrl?: string | undefined;
|
|
346
|
-
canonicalDomain?: string | undefined;
|
|
347
|
-
} | undefined;
|
|
348
|
-
}>;
|
|
119
|
+
requiredChains: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
120
|
+
"eip155:1": "eip155:1";
|
|
121
|
+
"eip155:8453": "eip155:8453";
|
|
122
|
+
"eip155:42161": "eip155:42161";
|
|
123
|
+
"eip155:421614": "eip155:421614";
|
|
124
|
+
"eip155:84532": "eip155:84532";
|
|
125
|
+
"eip155:666666666": "eip155:666666666";
|
|
126
|
+
"eip155:100": "eip155:100";
|
|
127
|
+
"eip155:10": "eip155:10";
|
|
128
|
+
"eip155:11155420": "eip155:11155420";
|
|
129
|
+
"eip155:137": "eip155:137";
|
|
130
|
+
"eip155:11155111": "eip155:11155111";
|
|
131
|
+
"eip155:7777777": "eip155:7777777";
|
|
132
|
+
"eip155:130": "eip155:130";
|
|
133
|
+
"eip155:10143": "eip155:10143";
|
|
134
|
+
"eip155:42220": "eip155:42220";
|
|
135
|
+
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
136
|
+
}>>, z.ZodTransform<("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[], ("eip155:1" | "eip155:8453" | "eip155:42161" | "eip155:421614" | "eip155:84532" | "eip155:666666666" | "eip155:100" | "eip155:10" | "eip155:11155420" | "eip155:137" | "eip155:11155111" | "eip155:7777777" | "eip155:130" | "eip155:10143" | "eip155:42220" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")[]>>>;
|
|
137
|
+
requiredCapabilities: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
138
|
+
"wallet.getEthereumProvider": "wallet.getEthereumProvider";
|
|
139
|
+
"wallet.getSolanaProvider": "wallet.getSolanaProvider";
|
|
140
|
+
"actions.ready": "actions.ready";
|
|
141
|
+
"actions.openUrl": "actions.openUrl";
|
|
142
|
+
"actions.close": "actions.close";
|
|
143
|
+
"actions.setPrimaryButton": "actions.setPrimaryButton";
|
|
144
|
+
"actions.addMiniApp": "actions.addMiniApp";
|
|
145
|
+
"actions.signIn": "actions.signIn";
|
|
146
|
+
"actions.viewCast": "actions.viewCast";
|
|
147
|
+
"actions.viewProfile": "actions.viewProfile";
|
|
148
|
+
"actions.composeCast": "actions.composeCast";
|
|
149
|
+
"actions.viewToken": "actions.viewToken";
|
|
150
|
+
"actions.sendToken": "actions.sendToken";
|
|
151
|
+
"actions.swapToken": "actions.swapToken";
|
|
152
|
+
"haptics.impactOccurred": "haptics.impactOccurred";
|
|
153
|
+
"haptics.notificationOccurred": "haptics.notificationOccurred";
|
|
154
|
+
"haptics.selectionChanged": "haptics.selectionChanged";
|
|
155
|
+
back: "back";
|
|
156
|
+
}>>, z.ZodTransform<("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[], ("wallet.getEthereumProvider" | "wallet.getSolanaProvider" | "actions.ready" | "actions.openUrl" | "actions.close" | "actions.setPrimaryButton" | "actions.addMiniApp" | "actions.signIn" | "actions.viewCast" | "actions.viewProfile" | "actions.composeCast" | "actions.viewToken" | "actions.sendToken" | "actions.swapToken" | "haptics.impactOccurred" | "haptics.notificationOccurred" | "haptics.selectionChanged" | "back")[]>>>;
|
|
157
|
+
castShareUrl: z.ZodOptional<z.ZodString>;
|
|
158
|
+
canonicalDomain: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strip>>;
|
|
160
|
+
}, z.core.$strip>;
|
package/dist/schemas/manifest.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.domainManifestSchema = exports.domainFrameConfigSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const v4_1 = require("zod/v4");
|
|
5
5
|
const types_ts_1 = require("../types.js");
|
|
6
6
|
const shared_ts_1 = require("./shared.js");
|
|
7
|
-
const primaryCategorySchema =
|
|
7
|
+
const primaryCategorySchema = v4_1.z.enum([
|
|
8
8
|
'games',
|
|
9
9
|
'social',
|
|
10
10
|
'finance',
|
|
@@ -41,16 +41,16 @@ function removeArrayDuplicates(arr) {
|
|
|
41
41
|
const set = new Set(arr);
|
|
42
42
|
return Array.from(set);
|
|
43
43
|
}
|
|
44
|
-
exports.domainFrameConfigSchema =
|
|
44
|
+
exports.domainFrameConfigSchema = v4_1.z
|
|
45
45
|
.object({
|
|
46
46
|
// 0.0.0 and 0.0.1 are not technically part of the spec but kept for
|
|
47
47
|
// backwards compatibility. next should always resolve to the most recent
|
|
48
48
|
// schema version.
|
|
49
|
-
version:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
version: v4_1.z.union([
|
|
50
|
+
v4_1.z.literal('0.0.0'),
|
|
51
|
+
v4_1.z.literal('0.0.1'),
|
|
52
|
+
v4_1.z.literal('1'),
|
|
53
|
+
v4_1.z.literal('next'),
|
|
54
54
|
]),
|
|
55
55
|
name: shared_ts_1.frameNameSchema,
|
|
56
56
|
iconUrl: shared_ts_1.secureUrlSchema,
|
|
@@ -65,9 +65,9 @@ exports.domainFrameConfigSchema = zod_1.z
|
|
|
65
65
|
/** see: https://github.com/farcasterxyz/miniapps/discussions/191 */
|
|
66
66
|
subtitle: (0, shared_ts_1.createSimpleStringSchema)({ max: 30 }).optional(),
|
|
67
67
|
description: (0, shared_ts_1.createSimpleStringSchema)({ max: 170 }).optional(),
|
|
68
|
-
screenshotUrls:
|
|
68
|
+
screenshotUrls: v4_1.z.array(shared_ts_1.secureUrlSchema).max(3).optional(),
|
|
69
69
|
primaryCategory: primaryCategorySchema.optional(),
|
|
70
|
-
tags:
|
|
70
|
+
tags: v4_1.z
|
|
71
71
|
.array((0, shared_ts_1.createSimpleStringSchema)({ max: 20, noSpaces: true }))
|
|
72
72
|
.max(5)
|
|
73
73
|
.optional(),
|
|
@@ -77,14 +77,14 @@ exports.domainFrameConfigSchema = zod_1.z
|
|
|
77
77
|
ogDescription: (0, shared_ts_1.createSimpleStringSchema)({ max: 100 }).optional(),
|
|
78
78
|
ogImageUrl: shared_ts_1.secureUrlSchema.optional(),
|
|
79
79
|
/** see: https://github.com/farcasterxyz/miniapps/discussions/204 */
|
|
80
|
-
noindex:
|
|
80
|
+
noindex: v4_1.z.boolean().optional(),
|
|
81
81
|
/** see https://github.com/farcasterxyz/miniapps/discussions/256 */
|
|
82
|
-
requiredChains:
|
|
83
|
-
.array(
|
|
82
|
+
requiredChains: v4_1.z
|
|
83
|
+
.array(v4_1.z.enum(chainList))
|
|
84
84
|
.transform(removeArrayDuplicates)
|
|
85
85
|
.optional(),
|
|
86
|
-
requiredCapabilities:
|
|
87
|
-
.array(
|
|
86
|
+
requiredCapabilities: v4_1.z
|
|
87
|
+
.array(v4_1.z.enum(types_ts_1.miniAppHostCapabilityList))
|
|
88
88
|
.transform(removeArrayDuplicates)
|
|
89
89
|
.optional(),
|
|
90
90
|
/** see https://github.com/farcasterxyz/miniapps/discussions/158 */
|
|
@@ -108,7 +108,7 @@ exports.domainFrameConfigSchema = zod_1.z
|
|
|
108
108
|
message: 'castShareUrl must have the same domain as homeUrl',
|
|
109
109
|
path: ['castShareUrl'],
|
|
110
110
|
});
|
|
111
|
-
exports.domainManifestSchema =
|
|
111
|
+
exports.domainManifestSchema = v4_1.z.object({
|
|
112
112
|
accountAssociation: shared_ts_1.encodedJsonFarcasterSignatureSchema,
|
|
113
113
|
frame: exports.domainFrameConfigSchema.optional(),
|
|
114
114
|
});
|