@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.
@@ -4,128 +4,40 @@ export declare const eventMiniAppAddedSchema: z.ZodObject<{
4
4
  notificationDetails: z.ZodOptional<z.ZodObject<{
5
5
  url: z.ZodString;
6
6
  token: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- url: string;
9
- token: string;
10
- }, {
11
- url: string;
12
- token: string;
13
- }>>;
14
- }, "strip", z.ZodTypeAny, {
15
- event: "miniapp_added";
16
- notificationDetails?: {
17
- url: string;
18
- token: string;
19
- } | undefined;
20
- }, {
21
- event: "miniapp_added";
22
- notificationDetails?: {
23
- url: string;
24
- token: string;
25
- } | undefined;
26
- }>;
7
+ }, z.core.$strip>>;
8
+ }, z.core.$strip>;
27
9
  export type EventMiniAppAdded = z.infer<typeof eventMiniAppAddedSchema>;
28
10
  export declare const eventMiniAppRemovedSchema: z.ZodObject<{
29
11
  event: z.ZodLiteral<"miniapp_removed">;
30
- }, "strip", z.ZodTypeAny, {
31
- event: "miniapp_removed";
32
- }, {
33
- event: "miniapp_removed";
34
- }>;
12
+ }, z.core.$strip>;
35
13
  export type EventMiniAppRemoved = z.infer<typeof eventMiniAppRemovedSchema>;
36
14
  export declare const eventNotificationsEnabledSchema: z.ZodObject<{
37
15
  event: z.ZodLiteral<"notifications_enabled">;
38
16
  notificationDetails: z.ZodObject<{
39
- url: z.ZodString;
40
- token: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- url: string;
43
- token: string;
44
- }, {
45
- url: string;
46
- token: string;
47
- }>;
48
- }, "strip", z.ZodTypeAny, {
49
- event: "notifications_enabled";
50
- notificationDetails: {
51
- url: string;
52
- token: string;
53
- };
54
- }, {
55
- event: "notifications_enabled";
56
- notificationDetails: {
57
- url: string;
58
- token: string;
59
- };
60
- }>;
17
+ url: z.ZodNonOptional<z.ZodString>;
18
+ token: z.ZodNonOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ }, z.core.$strip>;
61
21
  export type EventNotificationsEnabled = z.infer<typeof eventNotificationsEnabledSchema>;
62
22
  export declare const notificationsDisabledSchema: z.ZodObject<{
63
23
  event: z.ZodLiteral<"notifications_disabled">;
64
- }, "strip", z.ZodTypeAny, {
65
- event: "notifications_disabled";
66
- }, {
67
- event: "notifications_disabled";
68
- }>;
24
+ }, z.core.$strip>;
69
25
  export type EventNotificationsDisabled = z.infer<typeof notificationsDisabledSchema>;
70
- export declare const serverEventSchema: z.ZodDiscriminatedUnion<"event", [z.ZodObject<{
26
+ export declare const serverEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
71
27
  event: z.ZodLiteral<"miniapp_added">;
72
28
  notificationDetails: z.ZodOptional<z.ZodObject<{
73
29
  url: z.ZodString;
74
30
  token: z.ZodString;
75
- }, "strip", z.ZodTypeAny, {
76
- url: string;
77
- token: string;
78
- }, {
79
- url: string;
80
- token: string;
81
- }>>;
82
- }, "strip", z.ZodTypeAny, {
83
- event: "miniapp_added";
84
- notificationDetails?: {
85
- url: string;
86
- token: string;
87
- } | undefined;
88
- }, {
89
- event: "miniapp_added";
90
- notificationDetails?: {
91
- url: string;
92
- token: string;
93
- } | undefined;
94
- }>, z.ZodObject<{
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>, z.ZodObject<{
95
33
  event: z.ZodLiteral<"miniapp_removed">;
96
- }, "strip", z.ZodTypeAny, {
97
- event: "miniapp_removed";
98
- }, {
99
- event: "miniapp_removed";
100
- }>, z.ZodObject<{
34
+ }, z.core.$strip>, z.ZodObject<{
101
35
  event: z.ZodLiteral<"notifications_enabled">;
102
36
  notificationDetails: z.ZodObject<{
103
- url: z.ZodString;
104
- token: z.ZodString;
105
- }, "strip", z.ZodTypeAny, {
106
- url: string;
107
- token: string;
108
- }, {
109
- url: string;
110
- token: string;
111
- }>;
112
- }, "strip", z.ZodTypeAny, {
113
- event: "notifications_enabled";
114
- notificationDetails: {
115
- url: string;
116
- token: string;
117
- };
118
- }, {
119
- event: "notifications_enabled";
120
- notificationDetails: {
121
- url: string;
122
- token: string;
123
- };
124
- }>, z.ZodObject<{
37
+ url: z.ZodNonOptional<z.ZodString>;
38
+ token: z.ZodNonOptional<z.ZodString>;
39
+ }, z.core.$strip>;
40
+ }, z.core.$strip>, z.ZodObject<{
125
41
  event: z.ZodLiteral<"notifications_disabled">;
126
- }, "strip", z.ZodTypeAny, {
127
- event: "notifications_disabled";
128
- }, {
129
- event: "notifications_disabled";
130
- }>]>;
42
+ }, z.core.$strip>], "event">;
131
43
  export type MiniAppServerEvent = z.infer<typeof serverEventSchema>;