@farcaster/miniapp-core 0.5.1 → 0.6.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.
@@ -2,59 +2,21 @@ import { z } from 'zod';
2
2
  export declare const notificationDetailsSchema: z.ZodObject<{
3
3
  url: z.ZodString;
4
4
  token: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- url: string;
7
- token: string;
8
- }, {
9
- url: string;
10
- token: string;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export type MiniAppNotificationDetails = z.infer<typeof notificationDetailsSchema>;
13
7
  export declare const sendNotificationRequestSchema: z.ZodObject<{
14
8
  notificationId: z.ZodString;
15
9
  title: z.ZodString;
16
10
  body: z.ZodString;
17
- targetUrl: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
18
- tokens: z.ZodArray<z.ZodString, "many">;
19
- }, "strip", z.ZodTypeAny, {
20
- title: string;
21
- notificationId: string;
22
- body: string;
23
- targetUrl: string;
24
- tokens: string[];
25
- }, {
26
- title: string;
27
- notificationId: string;
28
- body: string;
29
- targetUrl: string;
30
- tokens: string[];
31
- }>;
11
+ targetUrl: z.ZodString;
12
+ tokens: z.ZodArray<z.ZodString>;
13
+ }, z.core.$strip>;
32
14
  export type SendNotificationRequest = z.infer<typeof sendNotificationRequestSchema>;
33
15
  export declare const sendNotificationResponseSchema: z.ZodObject<{
34
16
  result: z.ZodObject<{
35
- successfulTokens: z.ZodArray<z.ZodString, "many">;
36
- invalidTokens: z.ZodArray<z.ZodString, "many">;
37
- rateLimitedTokens: z.ZodArray<z.ZodString, "many">;
38
- }, "strip", z.ZodTypeAny, {
39
- successfulTokens: string[];
40
- invalidTokens: string[];
41
- rateLimitedTokens: string[];
42
- }, {
43
- successfulTokens: string[];
44
- invalidTokens: string[];
45
- rateLimitedTokens: string[];
46
- }>;
47
- }, "strip", z.ZodTypeAny, {
48
- result: {
49
- successfulTokens: string[];
50
- invalidTokens: string[];
51
- rateLimitedTokens: string[];
52
- };
53
- }, {
54
- result: {
55
- successfulTokens: string[];
56
- invalidTokens: string[];
57
- rateLimitedTokens: string[];
58
- };
59
- }>;
17
+ successfulTokens: z.ZodArray<z.ZodString>;
18
+ invalidTokens: z.ZodArray<z.ZodString>;
19
+ rateLimitedTokens: z.ZodArray<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
60
22
  export type SendNotificationResponse = z.infer<typeof sendNotificationResponseSchema>;
@@ -2,39 +2,23 @@ import { z } from 'zod';
2
2
  export declare const createSimpleStringSchema: ({ max, noSpaces, }?: {
3
3
  max?: number;
4
4
  noSpaces?: boolean;
5
- }) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
6
- export declare const secureUrlSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
+ }) => z.ZodString;
6
+ export declare const secureUrlSchema: z.ZodString;
7
7
  export declare const miniAppNameSchema: z.ZodString;
8
8
  export declare const buttonTitleSchema: z.ZodString;
9
9
  export declare const caip19TokenSchema: z.ZodString;
10
10
  export declare const hexColorSchema: z.ZodString;
11
- export declare const domainSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
12
- export declare const aspectRatioSchema: z.ZodUnion<[z.ZodLiteral<"1:1">, z.ZodLiteral<"3:2">]>;
11
+ export declare const domainSchema: z.ZodString;
12
+ export declare const aspectRatioSchema: z.ZodUnion<readonly [z.ZodLiteral<"1:1">, z.ZodLiteral<"3:2">]>;
13
13
  export declare const encodedJsonFarcasterSignatureSchema: z.ZodObject<{
14
14
  header: z.ZodString;
15
15
  payload: z.ZodString;
16
16
  signature: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- header: string;
19
- payload: string;
20
- signature: string;
21
- }, {
22
- header: string;
23
- payload: string;
24
- signature: string;
25
- }>;
17
+ }, z.core.$strip>;
26
18
  export type EncodedJsonFarcasterSignatureSchema = z.infer<typeof encodedJsonFarcasterSignatureSchema>;
27
19
  export declare const jsonFarcasterSignatureHeaderSchema: z.ZodObject<{
28
20
  fid: z.ZodNumber;
29
21
  type: z.ZodLiteral<"app_key">;
30
22
  key: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- type: "app_key";
33
- fid: number;
34
- key: string;
35
- }, {
36
- type: "app_key";
37
- fid: number;
38
- key: string;
39
- }>;
23
+ }, z.core.$strip>;
40
24
  export type JsonFarcasterSignatureHeaderSchema = z.infer<typeof jsonFarcasterSignatureHeaderSchema>;
@@ -15,7 +15,7 @@ const createSimpleStringSchema = ({ max, noSpaces, } = {}) => {
15
15
  ? zod_1.z
16
16
  .string()
17
17
  .max(max ?? Number.POSITIVE_INFINITY)
18
- .regex(/^\S*$/, 'Spaces are not allowed')
18
+ .regex(/^\S*$/, { message: 'Spaces are not allowed' })
19
19
  : zod_1.z.string().max(max ?? Number.POSITIVE_INFINITY);
20
20
  return stringValidations
21
21
  .refine((value) => !EMOJI_PATTERN.test(value), {
@@ -2,283 +2,86 @@ import { z } from 'zod';
2
2
  export declare const actionLaunchFrameSchema: z.ZodObject<{
3
3
  type: z.ZodLiteral<"launch_frame">;
4
4
  name: z.ZodString;
5
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
6
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
5
+ url: z.ZodOptional<z.ZodString>;
6
+ splashImageUrl: z.ZodOptional<z.ZodString>;
7
7
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
8
- }, "strip", z.ZodTypeAny, {
9
- type: "launch_frame";
10
- name: string;
11
- url?: string | undefined;
12
- splashImageUrl?: string | undefined;
13
- splashBackgroundColor?: string | undefined;
14
- }, {
15
- type: "launch_frame";
16
- name: string;
17
- url?: string | undefined;
18
- splashImageUrl?: string | undefined;
19
- splashBackgroundColor?: string | undefined;
20
- }>;
8
+ }, z.core.$strip>;
21
9
  export declare const actionLaunchMiniAppSchema: z.ZodObject<{
22
10
  type: z.ZodLiteral<"launch_miniapp">;
23
11
  name: z.ZodString;
24
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
25
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
+ url: z.ZodOptional<z.ZodString>;
13
+ splashImageUrl: z.ZodOptional<z.ZodString>;
26
14
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
27
- }, "strip", z.ZodTypeAny, {
28
- type: "launch_miniapp";
29
- name: string;
30
- url?: string | undefined;
31
- splashImageUrl?: string | undefined;
32
- splashBackgroundColor?: string | undefined;
33
- }, {
34
- type: "launch_miniapp";
35
- name: string;
36
- url?: string | undefined;
37
- splashImageUrl?: string | undefined;
38
- splashBackgroundColor?: string | undefined;
39
- }>;
15
+ }, z.core.$strip>;
40
16
  export declare const actionViewTokenSchema: z.ZodObject<{
41
17
  type: z.ZodLiteral<"view_token">;
42
18
  token: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- type: "view_token";
45
- token: string;
46
- }, {
47
- type: "view_token";
48
- token: string;
49
- }>;
50
- export declare const actionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
19
+ }, z.core.$strip>;
20
+ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
21
  type: z.ZodLiteral<"launch_miniapp">;
52
22
  name: z.ZodString;
53
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
54
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
23
+ url: z.ZodOptional<z.ZodString>;
24
+ splashImageUrl: z.ZodOptional<z.ZodString>;
55
25
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
56
- }, "strip", z.ZodTypeAny, {
57
- type: "launch_miniapp";
58
- name: string;
59
- url?: string | undefined;
60
- splashImageUrl?: string | undefined;
61
- splashBackgroundColor?: string | undefined;
62
- }, {
63
- type: "launch_miniapp";
64
- name: string;
65
- url?: string | undefined;
66
- splashImageUrl?: string | undefined;
67
- splashBackgroundColor?: string | undefined;
68
- }>, z.ZodObject<{
26
+ }, z.core.$strip>, z.ZodObject<{
69
27
  type: z.ZodLiteral<"view_token">;
70
28
  token: z.ZodString;
71
- }, "strip", z.ZodTypeAny, {
72
- type: "view_token";
73
- token: string;
74
- }, {
75
- type: "view_token";
76
- token: string;
77
- }>, z.ZodObject<{
29
+ }, z.core.$strip>, z.ZodObject<{
78
30
  type: z.ZodLiteral<"launch_frame">;
79
31
  name: z.ZodString;
80
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
81
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
32
+ url: z.ZodOptional<z.ZodString>;
33
+ splashImageUrl: z.ZodOptional<z.ZodString>;
82
34
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
83
- }, "strip", z.ZodTypeAny, {
84
- type: "launch_frame";
85
- name: string;
86
- url?: string | undefined;
87
- splashImageUrl?: string | undefined;
88
- splashBackgroundColor?: string | undefined;
89
- }, {
90
- type: "launch_frame";
91
- name: string;
92
- url?: string | undefined;
93
- splashImageUrl?: string | undefined;
94
- splashBackgroundColor?: string | undefined;
95
- }>]>;
35
+ }, z.core.$strip>], "type">;
96
36
  export declare const buttonSchema: z.ZodObject<{
97
37
  title: z.ZodString;
98
- action: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
38
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
99
39
  type: z.ZodLiteral<"launch_miniapp">;
100
40
  name: z.ZodString;
101
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
102
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
41
+ url: z.ZodOptional<z.ZodString>;
42
+ splashImageUrl: z.ZodOptional<z.ZodString>;
103
43
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
104
- }, "strip", z.ZodTypeAny, {
105
- type: "launch_miniapp";
106
- name: string;
107
- url?: string | undefined;
108
- splashImageUrl?: string | undefined;
109
- splashBackgroundColor?: string | undefined;
110
- }, {
111
- type: "launch_miniapp";
112
- name: string;
113
- url?: string | undefined;
114
- splashImageUrl?: string | undefined;
115
- splashBackgroundColor?: string | undefined;
116
- }>, z.ZodObject<{
44
+ }, z.core.$strip>, z.ZodObject<{
117
45
  type: z.ZodLiteral<"view_token">;
118
46
  token: z.ZodString;
119
- }, "strip", z.ZodTypeAny, {
120
- type: "view_token";
121
- token: string;
122
- }, {
123
- type: "view_token";
124
- token: string;
125
- }>, z.ZodObject<{
47
+ }, z.core.$strip>, z.ZodObject<{
126
48
  type: z.ZodLiteral<"launch_frame">;
127
49
  name: z.ZodString;
128
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
129
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
50
+ url: z.ZodOptional<z.ZodString>;
51
+ splashImageUrl: z.ZodOptional<z.ZodString>;
130
52
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
131
- }, "strip", z.ZodTypeAny, {
132
- type: "launch_frame";
133
- name: string;
134
- url?: string | undefined;
135
- splashImageUrl?: string | undefined;
136
- splashBackgroundColor?: string | undefined;
137
- }, {
138
- type: "launch_frame";
139
- name: string;
140
- url?: string | undefined;
141
- splashImageUrl?: string | undefined;
142
- splashBackgroundColor?: string | undefined;
143
- }>]>;
144
- }, "strip", z.ZodTypeAny, {
145
- title: string;
146
- action: {
147
- type: "launch_frame";
148
- name: string;
149
- url?: string | undefined;
150
- splashImageUrl?: string | undefined;
151
- splashBackgroundColor?: string | undefined;
152
- } | {
153
- type: "launch_miniapp";
154
- name: string;
155
- url?: string | undefined;
156
- splashImageUrl?: string | undefined;
157
- splashBackgroundColor?: string | undefined;
158
- } | {
159
- type: "view_token";
160
- token: string;
161
- };
162
- }, {
163
- title: string;
164
- action: {
165
- type: "launch_frame";
166
- name: string;
167
- url?: string | undefined;
168
- splashImageUrl?: string | undefined;
169
- splashBackgroundColor?: string | undefined;
170
- } | {
171
- type: "launch_miniapp";
172
- name: string;
173
- url?: string | undefined;
174
- splashImageUrl?: string | undefined;
175
- splashBackgroundColor?: string | undefined;
176
- } | {
177
- type: "view_token";
178
- token: string;
179
- };
180
- }>;
53
+ }, z.core.$strip>], "type">;
54
+ }, z.core.$strip>;
181
55
  export declare const miniAppEmbedNextSchema: z.ZodObject<{
182
- version: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodUnion<[z.ZodLiteral<"next">, z.ZodLiteral<"1">]>>;
183
- imageUrl: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
184
- aspectRatio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"1:1">, z.ZodLiteral<"3:2">]>>;
56
+ version: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>, z.ZodUnion<readonly [z.ZodLiteral<"next">, z.ZodLiteral<"1">]>>;
57
+ imageUrl: z.ZodString;
58
+ aspectRatio: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"1:1">, z.ZodLiteral<"3:2">]>>;
185
59
  button: z.ZodObject<{
186
60
  title: z.ZodString;
187
- action: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
61
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
188
62
  type: z.ZodLiteral<"launch_miniapp">;
189
63
  name: z.ZodString;
190
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
191
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
64
+ url: z.ZodOptional<z.ZodString>;
65
+ splashImageUrl: z.ZodOptional<z.ZodString>;
192
66
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
193
- }, "strip", z.ZodTypeAny, {
194
- type: "launch_miniapp";
195
- name: string;
196
- url?: string | undefined;
197
- splashImageUrl?: string | undefined;
198
- splashBackgroundColor?: string | undefined;
199
- }, {
200
- type: "launch_miniapp";
201
- name: string;
202
- url?: string | undefined;
203
- splashImageUrl?: string | undefined;
204
- splashBackgroundColor?: string | undefined;
205
- }>, z.ZodObject<{
67
+ }, z.core.$strip>, z.ZodObject<{
206
68
  type: z.ZodLiteral<"view_token">;
207
69
  token: z.ZodString;
208
- }, "strip", z.ZodTypeAny, {
209
- type: "view_token";
210
- token: string;
211
- }, {
212
- type: "view_token";
213
- token: string;
214
- }>, z.ZodObject<{
70
+ }, z.core.$strip>, z.ZodObject<{
215
71
  type: z.ZodLiteral<"launch_frame">;
216
72
  name: z.ZodString;
217
- url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
218
- splashImageUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
73
+ url: z.ZodOptional<z.ZodString>;
74
+ splashImageUrl: z.ZodOptional<z.ZodString>;
219
75
  splashBackgroundColor: z.ZodOptional<z.ZodString>;
220
- }, "strip", z.ZodTypeAny, {
221
- type: "launch_frame";
222
- name: string;
223
- url?: string | undefined;
224
- splashImageUrl?: string | undefined;
225
- splashBackgroundColor?: string | undefined;
226
- }, {
227
- type: "launch_frame";
228
- name: string;
229
- url?: string | undefined;
230
- splashImageUrl?: string | undefined;
231
- splashBackgroundColor?: string | undefined;
232
- }>]>;
233
- }, "strip", z.ZodTypeAny, {
234
- title: string;
235
- action: {
236
- type: "launch_frame";
237
- name: string;
238
- url?: string | undefined;
239
- splashImageUrl?: string | undefined;
240
- splashBackgroundColor?: string | undefined;
241
- } | {
242
- type: "launch_miniapp";
243
- name: string;
244
- url?: string | undefined;
245
- splashImageUrl?: string | undefined;
246
- splashBackgroundColor?: string | undefined;
247
- } | {
248
- type: "view_token";
249
- token: string;
250
- };
251
- }, {
252
- title: string;
253
- action: {
254
- type: "launch_frame";
255
- name: string;
256
- url?: string | undefined;
257
- splashImageUrl?: string | undefined;
258
- splashBackgroundColor?: string | undefined;
259
- } | {
260
- type: "launch_miniapp";
261
- name: string;
262
- url?: string | undefined;
263
- splashImageUrl?: string | undefined;
264
- splashBackgroundColor?: string | undefined;
265
- } | {
266
- type: "view_token";
267
- token: string;
268
- };
269
- }>;
270
- }, "strip", z.ZodTypeAny, {
76
+ }, z.core.$strip>], "type">;
77
+ }, z.core.$strip>;
78
+ }, z.core.$strip>;
79
+ export declare const safeParseMiniAppEmbed: (rawResponse: unknown) => z.ZodSafeParseResult<{
271
80
  version: "1" | "next";
272
81
  imageUrl: string;
273
82
  button: {
274
83
  title: string;
275
84
  action: {
276
- type: "launch_frame";
277
- name: string;
278
- url?: string | undefined;
279
- splashImageUrl?: string | undefined;
280
- splashBackgroundColor?: string | undefined;
281
- } | {
282
85
  type: "launch_miniapp";
283
86
  name: string;
284
87
  url?: string | undefined;
@@ -287,68 +90,22 @@ export declare const miniAppEmbedNextSchema: z.ZodObject<{
287
90
  } | {
288
91
  type: "view_token";
289
92
  token: string;
290
- };
291
- };
292
- aspectRatio?: "1:1" | "3:2" | undefined;
293
- }, {
294
- version: string | number;
295
- imageUrl: string;
296
- button: {
297
- title: string;
298
- action: {
299
- type: "launch_frame";
300
- name: string;
301
- url?: string | undefined;
302
- splashImageUrl?: string | undefined;
303
- splashBackgroundColor?: string | undefined;
304
93
  } | {
305
- type: "launch_miniapp";
306
- name: string;
307
- url?: string | undefined;
308
- splashImageUrl?: string | undefined;
309
- splashBackgroundColor?: string | undefined;
310
- } | {
311
- type: "view_token";
312
- token: string;
313
- };
314
- };
315
- aspectRatio?: "1:1" | "3:2" | undefined;
316
- }>;
317
- export declare const safeParseMiniAppEmbed: (rawResponse: unknown) => z.SafeParseReturnType<{
318
- version: string | number;
319
- imageUrl: string;
320
- button: {
321
- title: string;
322
- action: {
323
94
  type: "launch_frame";
324
95
  name: string;
325
96
  url?: string | undefined;
326
97
  splashImageUrl?: string | undefined;
327
98
  splashBackgroundColor?: string | undefined;
328
- } | {
329
- type: "launch_miniapp";
330
- name: string;
331
- url?: string | undefined;
332
- splashImageUrl?: string | undefined;
333
- splashBackgroundColor?: string | undefined;
334
- } | {
335
- type: "view_token";
336
- token: string;
337
99
  };
338
100
  };
339
101
  aspectRatio?: "1:1" | "3:2" | undefined;
340
- }, {
102
+ }>;
103
+ export declare const safeParseFrameEmbed: (rawResponse: unknown) => z.ZodSafeParseResult<{
341
104
  version: "1" | "next";
342
105
  imageUrl: string;
343
106
  button: {
344
107
  title: string;
345
108
  action: {
346
- type: "launch_frame";
347
- name: string;
348
- url?: string | undefined;
349
- splashImageUrl?: string | undefined;
350
- splashBackgroundColor?: string | undefined;
351
- } | {
352
109
  type: "launch_miniapp";
353
110
  name: string;
354
111
  url?: string | undefined;
@@ -357,53 +114,12 @@ export declare const safeParseMiniAppEmbed: (rawResponse: unknown) => z.SafePars
357
114
  } | {
358
115
  type: "view_token";
359
116
  token: string;
360
- };
361
- };
362
- aspectRatio?: "1:1" | "3:2" | undefined;
363
- }>;
364
- export declare const safeParseFrameEmbed: (rawResponse: unknown) => z.SafeParseReturnType<{
365
- version: string | number;
366
- imageUrl: string;
367
- button: {
368
- title: string;
369
- action: {
370
- type: "launch_frame";
371
- name: string;
372
- url?: string | undefined;
373
- splashImageUrl?: string | undefined;
374
- splashBackgroundColor?: string | undefined;
375
- } | {
376
- type: "launch_miniapp";
377
- name: string;
378
- url?: string | undefined;
379
- splashImageUrl?: string | undefined;
380
- splashBackgroundColor?: string | undefined;
381
117
  } | {
382
- type: "view_token";
383
- token: string;
384
- };
385
- };
386
- aspectRatio?: "1:1" | "3:2" | undefined;
387
- }, {
388
- version: "1" | "next";
389
- imageUrl: string;
390
- button: {
391
- title: string;
392
- action: {
393
118
  type: "launch_frame";
394
119
  name: string;
395
120
  url?: string | undefined;
396
121
  splashImageUrl?: string | undefined;
397
122
  splashBackgroundColor?: string | undefined;
398
- } | {
399
- type: "launch_miniapp";
400
- name: string;
401
- url?: string | undefined;
402
- splashImageUrl?: string | undefined;
403
- splashBackgroundColor?: string | undefined;
404
- } | {
405
- type: "view_token";
406
- token: string;
407
123
  };
408
124
  };
409
125
  aspectRatio?: "1:1" | "3:2" | undefined;