@farcaster/frame-core 0.2.0 → 0.3.1

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.
Files changed (142) hide show
  1. package/dist/index.d.ts +372 -10
  2. package/dist/index.js +18 -33
  3. package/esm/index.d.ts +372 -10
  4. package/esm/index.js +17 -10
  5. package/esm/tsconfig.tsbuildinfo +1 -1
  6. package/package.json +6 -8
  7. package/src/index.ts +50 -10
  8. package/dist/actions/AddMiniApp.d.ts +0 -36
  9. package/dist/actions/AddMiniApp.js +0 -57
  10. package/dist/actions/ComposeCast.d.ts +0 -37
  11. package/dist/actions/ComposeCast.js +0 -2
  12. package/dist/actions/Haptics.d.ts +0 -5
  13. package/dist/actions/Haptics.js +0 -2
  14. package/dist/actions/Ready.d.ts +0 -13
  15. package/dist/actions/Ready.js +0 -6
  16. package/dist/actions/SendToken.d.ts +0 -48
  17. package/dist/actions/SendToken.js +0 -2
  18. package/dist/actions/SignIn.d.ts +0 -55
  19. package/dist/actions/SignIn.js +0 -47
  20. package/dist/actions/SwapToken.d.ts +0 -46
  21. package/dist/actions/SwapToken.js +0 -2
  22. package/dist/actions/ViewCast.d.ts +0 -25
  23. package/dist/actions/ViewCast.js +0 -2
  24. package/dist/actions/ViewProfile.d.ts +0 -4
  25. package/dist/actions/ViewProfile.js +0 -2
  26. package/dist/actions/ViewToken.d.ts +0 -4
  27. package/dist/actions/ViewToken.js +0 -2
  28. package/dist/actions/index.d.ts +0 -10
  29. package/dist/actions/index.js +0 -46
  30. package/dist/back.d.ts +0 -13
  31. package/dist/back.js +0 -6
  32. package/dist/context.d.ts +0 -94
  33. package/dist/context.js +0 -2
  34. package/dist/errors.d.ts +0 -13
  35. package/dist/errors.js +0 -12
  36. package/dist/internal/types.d.ts +0 -8
  37. package/dist/internal/types.js +0 -2
  38. package/dist/manifest.d.ts +0 -107
  39. package/dist/manifest.js +0 -2
  40. package/dist/schemas/embeds.d.ts +0 -243
  41. package/dist/schemas/embeds.js +0 -32
  42. package/dist/schemas/events.d.ts +0 -131
  43. package/dist/schemas/events.js +0 -25
  44. package/dist/schemas/index.d.ts +0 -5
  45. package/dist/schemas/index.js +0 -21
  46. package/dist/schemas/manifest.d.ts +0 -348
  47. package/dist/schemas/manifest.js +0 -114
  48. package/dist/schemas/notifications.d.ts +0 -60
  49. package/dist/schemas/notifications.js +0 -23
  50. package/dist/schemas/shared.d.ts +0 -40
  51. package/dist/schemas/shared.js +0 -83
  52. package/dist/solana.d.ts +0 -72
  53. package/dist/solana.js +0 -15
  54. package/dist/solanaWire.d.ts +0 -3
  55. package/dist/solanaWire.js +0 -84
  56. package/dist/types.d.ts +0 -87
  57. package/dist/types.js +0 -41
  58. package/dist/wallet/ethereum.d.ts +0 -47
  59. package/dist/wallet/ethereum.js +0 -2
  60. package/dist/wallet/index.d.ts +0 -1
  61. package/dist/wallet/index.js +0 -37
  62. package/esm/actions/AddMiniApp.d.ts +0 -36
  63. package/esm/actions/AddMiniApp.js +0 -19
  64. package/esm/actions/ComposeCast.d.ts +0 -37
  65. package/esm/actions/ComposeCast.js +0 -1
  66. package/esm/actions/Haptics.d.ts +0 -5
  67. package/esm/actions/Haptics.js +0 -1
  68. package/esm/actions/Ready.d.ts +0 -13
  69. package/esm/actions/Ready.js +0 -3
  70. package/esm/actions/SendToken.d.ts +0 -48
  71. package/esm/actions/SendToken.js +0 -1
  72. package/esm/actions/SignIn.d.ts +0 -55
  73. package/esm/actions/SignIn.js +0 -10
  74. package/esm/actions/SwapToken.d.ts +0 -46
  75. package/esm/actions/SwapToken.js +0 -1
  76. package/esm/actions/ViewCast.d.ts +0 -25
  77. package/esm/actions/ViewCast.js +0 -1
  78. package/esm/actions/ViewProfile.d.ts +0 -4
  79. package/esm/actions/ViewProfile.js +0 -1
  80. package/esm/actions/ViewToken.d.ts +0 -4
  81. package/esm/actions/ViewToken.js +0 -1
  82. package/esm/actions/index.d.ts +0 -10
  83. package/esm/actions/index.js +0 -10
  84. package/esm/back.d.ts +0 -13
  85. package/esm/back.js +0 -3
  86. package/esm/context.d.ts +0 -94
  87. package/esm/context.js +0 -1
  88. package/esm/errors.d.ts +0 -13
  89. package/esm/errors.js +0 -8
  90. package/esm/internal/types.d.ts +0 -8
  91. package/esm/internal/types.js +0 -1
  92. package/esm/manifest.d.ts +0 -107
  93. package/esm/manifest.js +0 -1
  94. package/esm/schemas/embeds.d.ts +0 -243
  95. package/esm/schemas/embeds.js +0 -28
  96. package/esm/schemas/events.d.ts +0 -131
  97. package/esm/schemas/events.js +0 -22
  98. package/esm/schemas/index.d.ts +0 -5
  99. package/esm/schemas/index.js +0 -5
  100. package/esm/schemas/manifest.d.ts +0 -348
  101. package/esm/schemas/manifest.js +0 -111
  102. package/esm/schemas/notifications.d.ts +0 -60
  103. package/esm/schemas/notifications.js +0 -20
  104. package/esm/schemas/shared.d.ts +0 -40
  105. package/esm/schemas/shared.js +0 -79
  106. package/esm/solana.d.ts +0 -72
  107. package/esm/solana.js +0 -11
  108. package/esm/solanaWire.d.ts +0 -3
  109. package/esm/solanaWire.js +0 -80
  110. package/esm/types.d.ts +0 -87
  111. package/esm/types.js +0 -23
  112. package/esm/wallet/ethereum.d.ts +0 -47
  113. package/esm/wallet/ethereum.js +0 -1
  114. package/esm/wallet/index.d.ts +0 -1
  115. package/esm/wallet/index.js +0 -1
  116. package/src/actions/AddMiniApp.ts +0 -51
  117. package/src/actions/ComposeCast.ts +0 -44
  118. package/src/actions/Haptics.ts +0 -9
  119. package/src/actions/Ready.ts +0 -15
  120. package/src/actions/SendToken.ts +0 -57
  121. package/src/actions/SignIn.ts +0 -67
  122. package/src/actions/SwapToken.ts +0 -54
  123. package/src/actions/ViewCast.ts +0 -27
  124. package/src/actions/ViewProfile.ts +0 -5
  125. package/src/actions/ViewToken.ts +0 -5
  126. package/src/actions/index.ts +0 -10
  127. package/src/back.ts +0 -15
  128. package/src/context.ts +0 -117
  129. package/src/errors.ts +0 -21
  130. package/src/internal/types.ts +0 -20
  131. package/src/manifest.ts +0 -120
  132. package/src/schemas/embeds.ts +0 -44
  133. package/src/schemas/events.ts +0 -41
  134. package/src/schemas/index.ts +0 -5
  135. package/src/schemas/manifest.ts +0 -125
  136. package/src/schemas/notifications.ts +0 -33
  137. package/src/schemas/shared.ts +0 -109
  138. package/src/solana.ts +0 -108
  139. package/src/solanaWire.ts +0 -120
  140. package/src/types.ts +0 -155
  141. package/src/wallet/ethereum.ts +0 -65
  142. package/src/wallet/index.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,10 +1,372 @@
1
- export * from './actions/index.ts';
2
- export * from './wallet/index.ts';
3
- export * as Back from './back.ts';
4
- export * as Errors from './errors.ts';
5
- export * as Context from './context.ts';
6
- export * as Manifest from './manifest.ts';
7
- export * from './types.ts';
8
- export * from './schemas/index.ts';
9
- export * from './solana.ts';
10
- export * from './solanaWire.ts';
1
+ export * from '@farcaster/miniapp-core';
2
+ import { type EventFrameAddRejected as _EventFrameAddRejected, type EventFrameAdded as _EventFrameAdded, type EventFrameRemoved as _EventFrameRemoved, type MiniAppClientEvent as _MiniAppClientEvent, type MiniAppEmbedNext as _MiniAppEmbedNext, type MiniAppHost as _MiniAppHost, type MiniAppNotificationDetails as _MiniAppNotificationDetails, type MiniAppServerEvent as _MiniAppServerEvent, type WireMiniAppHost as _WireMiniAppHost } from '@farcaster/miniapp-core';
3
+ export type FrameHost = _MiniAppHost;
4
+ export type WireFrameHost = _WireMiniAppHost;
5
+ export type FrameClientEvent = _MiniAppClientEvent;
6
+ export type FrameServerEvent = _MiniAppServerEvent;
7
+ export type EventFrameAdded = _EventFrameAdded;
8
+ export type EventFrameRemoved = _EventFrameRemoved;
9
+ export type EventFrameAddRejected = _EventFrameAddRejected;
10
+ export type FrameNotificationDetails = _MiniAppNotificationDetails;
11
+ export type FrameEmbedNext = _MiniAppEmbedNext;
12
+ export declare const frameNameSchema: import("zod").ZodString;
13
+ export declare const eventFrameAddedSchema: import("zod").ZodObject<{
14
+ event: import("zod").ZodLiteral<"frame_added">;
15
+ notificationDetails: import("zod").ZodOptional<import("zod").ZodObject<{
16
+ url: import("zod").ZodString;
17
+ token: import("zod").ZodString;
18
+ }, "strip", import("zod").ZodTypeAny, {
19
+ url: string;
20
+ token: string;
21
+ }, {
22
+ url: string;
23
+ token: string;
24
+ }>>;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ event: "frame_added";
27
+ notificationDetails?: {
28
+ url: string;
29
+ token: string;
30
+ } | undefined;
31
+ }, {
32
+ event: "frame_added";
33
+ notificationDetails?: {
34
+ url: string;
35
+ token: string;
36
+ } | undefined;
37
+ }>;
38
+ export declare const eventFrameRemovedSchema: import("zod").ZodObject<{
39
+ event: import("zod").ZodLiteral<"frame_removed">;
40
+ }, "strip", import("zod").ZodTypeAny, {
41
+ event: "frame_removed";
42
+ }, {
43
+ event: "frame_removed";
44
+ }>;
45
+ export declare const domainFrameConfigSchema: import("zod").ZodEffects<import("zod").ZodObject<{
46
+ version: import("zod").ZodUnion<[import("zod").ZodLiteral<"0.0.0">, import("zod").ZodLiteral<"0.0.1">, import("zod").ZodLiteral<"1">, import("zod").ZodLiteral<"next">]>;
47
+ name: import("zod").ZodString;
48
+ iconUrl: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
49
+ homeUrl: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
50
+ imageUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
51
+ buttonTitle: import("zod").ZodOptional<import("zod").ZodString>;
52
+ splashImageUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
53
+ splashBackgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
54
+ webhookUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
55
+ subtitle: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>>;
56
+ description: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>>;
57
+ screenshotUrls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, "many">>;
58
+ primaryCategory: import("zod").ZodOptional<import("zod").ZodEnum<["games", "social", "finance", "utility", "productivity", "health-fitness", "news-media", "music", "shopping", "education", "developer-tools", "entertainment", "art-creativity"]>>;
59
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, "many">>;
60
+ heroImageUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
61
+ tagline: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>>;
62
+ ogTitle: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>>;
63
+ ogDescription: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>>;
64
+ ogImageUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
65
+ noindex: import("zod").ZodOptional<import("zod").ZodBoolean>;
66
+ requiredChains: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodArray<import("zod").ZodEnum<["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"]>, "many">, ("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")[]>>;
67
+ requiredCapabilities: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodArray<import("zod").ZodEnum<["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"]>, "many">, ("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")[]>>;
68
+ castShareUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
69
+ canonicalDomain: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, string, string>>;
70
+ }, "strip", import("zod").ZodTypeAny, {
71
+ name: string;
72
+ version: "1" | "next" | "0.0.0" | "0.0.1";
73
+ iconUrl: string;
74
+ homeUrl: string;
75
+ splashImageUrl?: string | undefined;
76
+ splashBackgroundColor?: string | undefined;
77
+ imageUrl?: string | undefined;
78
+ buttonTitle?: string | undefined;
79
+ webhookUrl?: string | undefined;
80
+ subtitle?: string | undefined;
81
+ description?: string | undefined;
82
+ screenshotUrls?: string[] | undefined;
83
+ primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
84
+ tags?: string[] | undefined;
85
+ heroImageUrl?: string | undefined;
86
+ tagline?: string | undefined;
87
+ ogTitle?: string | undefined;
88
+ ogDescription?: string | undefined;
89
+ ogImageUrl?: string | undefined;
90
+ noindex?: boolean | undefined;
91
+ 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;
92
+ 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;
93
+ castShareUrl?: string | undefined;
94
+ canonicalDomain?: string | undefined;
95
+ }, {
96
+ name: string;
97
+ version: "1" | "next" | "0.0.0" | "0.0.1";
98
+ iconUrl: string;
99
+ homeUrl: string;
100
+ splashImageUrl?: string | undefined;
101
+ splashBackgroundColor?: string | undefined;
102
+ imageUrl?: string | undefined;
103
+ buttonTitle?: string | undefined;
104
+ webhookUrl?: string | undefined;
105
+ subtitle?: string | undefined;
106
+ description?: string | undefined;
107
+ screenshotUrls?: string[] | undefined;
108
+ primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
109
+ tags?: string[] | undefined;
110
+ heroImageUrl?: string | undefined;
111
+ tagline?: string | undefined;
112
+ ogTitle?: string | undefined;
113
+ ogDescription?: string | undefined;
114
+ ogImageUrl?: string | undefined;
115
+ noindex?: boolean | undefined;
116
+ 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;
117
+ 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;
118
+ castShareUrl?: string | undefined;
119
+ canonicalDomain?: string | undefined;
120
+ }>, {
121
+ name: string;
122
+ version: "1" | "next" | "0.0.0" | "0.0.1";
123
+ iconUrl: string;
124
+ homeUrl: string;
125
+ splashImageUrl?: string | undefined;
126
+ splashBackgroundColor?: string | undefined;
127
+ imageUrl?: string | undefined;
128
+ buttonTitle?: string | undefined;
129
+ webhookUrl?: string | undefined;
130
+ subtitle?: string | undefined;
131
+ description?: string | undefined;
132
+ screenshotUrls?: string[] | undefined;
133
+ primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
134
+ tags?: string[] | undefined;
135
+ heroImageUrl?: string | undefined;
136
+ tagline?: string | undefined;
137
+ ogTitle?: string | undefined;
138
+ ogDescription?: string | undefined;
139
+ ogImageUrl?: string | undefined;
140
+ noindex?: boolean | undefined;
141
+ 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;
142
+ 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;
143
+ castShareUrl?: string | undefined;
144
+ canonicalDomain?: string | undefined;
145
+ }, {
146
+ name: string;
147
+ version: "1" | "next" | "0.0.0" | "0.0.1";
148
+ iconUrl: string;
149
+ homeUrl: string;
150
+ splashImageUrl?: string | undefined;
151
+ splashBackgroundColor?: string | undefined;
152
+ imageUrl?: string | undefined;
153
+ buttonTitle?: string | undefined;
154
+ webhookUrl?: string | undefined;
155
+ subtitle?: string | undefined;
156
+ description?: string | undefined;
157
+ screenshotUrls?: string[] | undefined;
158
+ primaryCategory?: "games" | "social" | "finance" | "utility" | "productivity" | "health-fitness" | "news-media" | "music" | "shopping" | "education" | "developer-tools" | "entertainment" | "art-creativity" | undefined;
159
+ tags?: string[] | undefined;
160
+ heroImageUrl?: string | undefined;
161
+ tagline?: string | undefined;
162
+ ogTitle?: string | undefined;
163
+ ogDescription?: string | undefined;
164
+ ogImageUrl?: string | undefined;
165
+ noindex?: boolean | undefined;
166
+ 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;
167
+ 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;
168
+ castShareUrl?: string | undefined;
169
+ canonicalDomain?: string | undefined;
170
+ }>;
171
+ export declare const frameEmbedNextSchema: import("zod").ZodObject<{
172
+ version: import("zod").ZodLiteral<"next">;
173
+ imageUrl: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
174
+ aspectRatio: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"1:1">, import("zod").ZodLiteral<"3:2">]>>;
175
+ button: import("zod").ZodObject<{
176
+ title: import("zod").ZodString;
177
+ action: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
178
+ type: import("zod").ZodLiteral<"launch_miniapp">;
179
+ name: import("zod").ZodString;
180
+ url: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
181
+ splashImageUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
182
+ splashBackgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
183
+ }, "strip", import("zod").ZodTypeAny, {
184
+ type: "launch_miniapp";
185
+ name: string;
186
+ url?: string | undefined;
187
+ splashImageUrl?: string | undefined;
188
+ splashBackgroundColor?: string | undefined;
189
+ }, {
190
+ type: "launch_miniapp";
191
+ name: string;
192
+ url?: string | undefined;
193
+ splashImageUrl?: string | undefined;
194
+ splashBackgroundColor?: string | undefined;
195
+ }>, import("zod").ZodObject<{
196
+ type: import("zod").ZodLiteral<"view_token">;
197
+ token: import("zod").ZodString;
198
+ }, "strip", import("zod").ZodTypeAny, {
199
+ type: "view_token";
200
+ token: string;
201
+ }, {
202
+ type: "view_token";
203
+ token: string;
204
+ }>, import("zod").ZodObject<{
205
+ type: import("zod").ZodLiteral<"launch_frame">;
206
+ name: import("zod").ZodString;
207
+ url: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
208
+ splashImageUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
209
+ splashBackgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
210
+ }, "strip", import("zod").ZodTypeAny, {
211
+ type: "launch_frame";
212
+ name: string;
213
+ url?: string | undefined;
214
+ splashImageUrl?: string | undefined;
215
+ splashBackgroundColor?: string | undefined;
216
+ }, {
217
+ type: "launch_frame";
218
+ name: string;
219
+ url?: string | undefined;
220
+ splashImageUrl?: string | undefined;
221
+ splashBackgroundColor?: string | undefined;
222
+ }>]>;
223
+ }, "strip", import("zod").ZodTypeAny, {
224
+ title: string;
225
+ action: {
226
+ type: "launch_frame";
227
+ name: string;
228
+ url?: string | undefined;
229
+ splashImageUrl?: string | undefined;
230
+ splashBackgroundColor?: string | undefined;
231
+ } | {
232
+ type: "launch_miniapp";
233
+ name: string;
234
+ url?: string | undefined;
235
+ splashImageUrl?: string | undefined;
236
+ splashBackgroundColor?: string | undefined;
237
+ } | {
238
+ type: "view_token";
239
+ token: string;
240
+ };
241
+ }, {
242
+ title: string;
243
+ action: {
244
+ type: "launch_frame";
245
+ name: string;
246
+ url?: string | undefined;
247
+ splashImageUrl?: string | undefined;
248
+ splashBackgroundColor?: string | undefined;
249
+ } | {
250
+ type: "launch_miniapp";
251
+ name: string;
252
+ url?: string | undefined;
253
+ splashImageUrl?: string | undefined;
254
+ splashBackgroundColor?: string | undefined;
255
+ } | {
256
+ type: "view_token";
257
+ token: string;
258
+ };
259
+ }>;
260
+ }, "strip", import("zod").ZodTypeAny, {
261
+ version: "next";
262
+ imageUrl: string;
263
+ button: {
264
+ title: string;
265
+ action: {
266
+ type: "launch_frame";
267
+ name: string;
268
+ url?: string | undefined;
269
+ splashImageUrl?: string | undefined;
270
+ splashBackgroundColor?: string | undefined;
271
+ } | {
272
+ type: "launch_miniapp";
273
+ name: string;
274
+ url?: string | undefined;
275
+ splashImageUrl?: string | undefined;
276
+ splashBackgroundColor?: string | undefined;
277
+ } | {
278
+ type: "view_token";
279
+ token: string;
280
+ };
281
+ };
282
+ aspectRatio?: "1:1" | "3:2" | undefined;
283
+ }, {
284
+ version: "next";
285
+ imageUrl: string;
286
+ button: {
287
+ title: string;
288
+ action: {
289
+ type: "launch_frame";
290
+ name: string;
291
+ url?: string | undefined;
292
+ splashImageUrl?: string | undefined;
293
+ splashBackgroundColor?: string | undefined;
294
+ } | {
295
+ type: "launch_miniapp";
296
+ name: string;
297
+ url?: string | undefined;
298
+ splashImageUrl?: string | undefined;
299
+ splashBackgroundColor?: string | undefined;
300
+ } | {
301
+ type: "view_token";
302
+ token: string;
303
+ };
304
+ };
305
+ aspectRatio?: "1:1" | "3:2" | undefined;
306
+ }>;
307
+ export declare const safeParseFrameEmbed: (rawResponse: unknown) => import("zod").SafeParseReturnType<{
308
+ version: "next";
309
+ imageUrl: string;
310
+ button: {
311
+ title: string;
312
+ action: {
313
+ type: "launch_frame";
314
+ name: string;
315
+ url?: string | undefined;
316
+ splashImageUrl?: string | undefined;
317
+ splashBackgroundColor?: string | undefined;
318
+ } | {
319
+ type: "launch_miniapp";
320
+ name: string;
321
+ url?: string | undefined;
322
+ splashImageUrl?: string | undefined;
323
+ splashBackgroundColor?: string | undefined;
324
+ } | {
325
+ type: "view_token";
326
+ token: string;
327
+ };
328
+ };
329
+ aspectRatio?: "1:1" | "3:2" | undefined;
330
+ }, {
331
+ version: "next";
332
+ imageUrl: string;
333
+ button: {
334
+ title: string;
335
+ action: {
336
+ type: "launch_frame";
337
+ name: string;
338
+ url?: string | undefined;
339
+ splashImageUrl?: string | undefined;
340
+ splashBackgroundColor?: string | undefined;
341
+ } | {
342
+ type: "launch_miniapp";
343
+ name: string;
344
+ url?: string | undefined;
345
+ splashImageUrl?: string | undefined;
346
+ splashBackgroundColor?: string | undefined;
347
+ } | {
348
+ type: "view_token";
349
+ token: string;
350
+ };
351
+ };
352
+ aspectRatio?: "1:1" | "3:2" | undefined;
353
+ }>;
354
+ export declare const actionLaunchFrameSchema: import("zod").ZodObject<{
355
+ type: import("zod").ZodLiteral<"launch_frame">;
356
+ name: import("zod").ZodString;
357
+ url: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
358
+ splashImageUrl: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
359
+ splashBackgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
360
+ }, "strip", import("zod").ZodTypeAny, {
361
+ type: "launch_frame";
362
+ name: string;
363
+ url?: string | undefined;
364
+ splashImageUrl?: string | undefined;
365
+ splashBackgroundColor?: string | undefined;
366
+ }, {
367
+ type: "launch_frame";
368
+ name: string;
369
+ url?: string | undefined;
370
+ splashImageUrl?: string | undefined;
371
+ splashBackgroundColor?: string | undefined;
372
+ }>;
package/dist/index.js CHANGED
@@ -10,40 +10,25 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
15
  };
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
16
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Manifest = exports.Context = exports.Errors = exports.Back = void 0;
40
- __exportStar(require("./actions/index.js"), exports);
41
- __exportStar(require("./wallet/index.js"), exports);
42
- exports.Back = __importStar(require("./back.js"));
43
- exports.Errors = __importStar(require("./errors.js"));
44
- exports.Context = __importStar(require("./context.js"));
45
- exports.Manifest = __importStar(require("./manifest.js"));
46
- __exportStar(require("./types.js"), exports);
47
- __exportStar(require("./schemas/index.js"), exports);
48
- __exportStar(require("./solana.js"), exports);
49
- __exportStar(require("./solanaWire.js"), exports);
17
+ exports.actionLaunchFrameSchema = exports.safeParseFrameEmbed = exports.frameEmbedNextSchema = exports.domainFrameConfigSchema = exports.eventFrameRemovedSchema = exports.eventFrameAddedSchema = exports.frameNameSchema = void 0;
18
+ // Deprecation warning
19
+ if (typeof console !== 'undefined' && console.warn) {
20
+ console.warn('[DEPRECATION WARNING] @farcaster/frame-core is deprecated. Please migrate to @farcaster/miniapp-core. ' +
21
+ 'See https://github.com/farcasterxyz/frames/blob/main/MIGRATION.md for migration guide.');
22
+ }
23
+ // Re-export everything from miniapp-core
24
+ __exportStar(require("@farcaster/miniapp-core"), exports);
25
+ // Import types for aliasing
26
+ const miniapp_core_1 = require("@farcaster/miniapp-core");
27
+ // Backward compatibility schema aliases
28
+ exports.frameNameSchema = miniapp_core_1.miniAppNameSchema;
29
+ exports.eventFrameAddedSchema = miniapp_core_1.eventFrameAddedSchema;
30
+ exports.eventFrameRemovedSchema = miniapp_core_1.eventFrameRemovedSchema;
31
+ exports.domainFrameConfigSchema = miniapp_core_1.domainMiniAppConfigSchema;
32
+ exports.frameEmbedNextSchema = miniapp_core_1.miniAppEmbedNextSchema;
33
+ exports.safeParseFrameEmbed = miniapp_core_1.safeParseMiniAppEmbed;
34
+ exports.actionLaunchFrameSchema = miniapp_core_1.actionLaunchFrameSchema;