unframer 4.1.8 → 4.2.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.
Files changed (162) hide show
  1. package/README.md +5 -5
  2. package/dist/babel-jsx.d.ts +9 -0
  3. package/dist/babel-jsx.d.ts.map +1 -1
  4. package/dist/babel-jsx.js +72 -0
  5. package/dist/babel-jsx.js.map +1 -1
  6. package/dist/cli.d.ts +2 -2
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +262 -42
  9. package/dist/cli.js.map +1 -1
  10. package/dist/css-core.d.ts +50 -0
  11. package/dist/css-core.d.ts.map +1 -0
  12. package/dist/css-core.js +231 -0
  13. package/dist/css-core.js.map +1 -0
  14. package/dist/css.d.ts +9 -43
  15. package/dist/css.d.ts.map +1 -1
  16. package/dist/css.js +9 -232
  17. package/dist/css.js.map +1 -1
  18. package/dist/exporter.d.ts +1 -1
  19. package/dist/exporter.d.ts.map +1 -1
  20. package/dist/exporter.js +72 -11
  21. package/dist/exporter.js.map +1 -1
  22. package/dist/exporter.test.js +78 -0
  23. package/dist/exporter.test.js.map +1 -1
  24. package/dist/framer-chunks/{SqliteDatabase-VAKIICSG-R7ZS6CHH.js → SqliteDatabase-VAKIICSG-OPV4MG3Y.js} +5 -4
  25. package/dist/framer-chunks/{chunk-2DZGP7C2.js → chunk-7ZLQTYXQ.js} +5 -24
  26. package/dist/framer-chunks/chunk-IKQSD2QC.js +10 -0
  27. package/dist/framer-chunks/default-blog-sqlite-7ZHEY3GT-TVGUYU6H.js +7 -0
  28. package/dist/framer-chunks/fontshare-4THNDPMZ-FLLTWCDO.js +7 -0
  29. package/dist/framer-chunks/fontshare-B2QLD7YB-5V3XZJAH.js +7 -0
  30. package/dist/framer-chunks/fontshare-O22OBJ3D-FIG3CRN3.js +7 -0
  31. package/dist/framer-chunks/framer-font-45AI7UCZ-CKGC4MJC.js +7 -0
  32. package/dist/framer-chunks/google-3FCAKCAC-AM34UPJK.js +7 -0
  33. package/dist/framer-chunks/google-3SZHWBC6-2VTQEQ7J.js +7 -0
  34. package/dist/framer-chunks/google-GXDJLGJB-JNEJGCGD.js +7 -0
  35. package/dist/framer-chunks/sqlite-wasm-FGP37EAY-NO5QVZDI.js +7 -0
  36. package/dist/framer-chunks/sqlite3-SISQ6ENZ-5WRKGWTY.js +7 -0
  37. package/dist/framer.d.ts +128 -0
  38. package/dist/framer.js +820 -428
  39. package/dist/plugin-mcp-dist/lib/framer.d.ts +1 -7
  40. package/dist/plugin-mcp-dist/lib/framer.d.ts.map +1 -1
  41. package/dist/plugin-mcp-dist/lib/framer.js +90 -23
  42. package/dist/plugin-mcp-dist/lib/framer.js.map +1 -1
  43. package/dist/plugin-mcp-dist/lib/framer.test.d.ts +2 -0
  44. package/dist/plugin-mcp-dist/lib/framer.test.d.ts.map +1 -0
  45. package/dist/plugin-mcp-dist/lib/framer.test.js +214 -0
  46. package/dist/plugin-mcp-dist/lib/framer.test.js.map +1 -0
  47. package/dist/plugin-mcp-dist/lib/mcp-handlers.d.ts.map +1 -1
  48. package/dist/plugin-mcp-dist/lib/mcp-handlers.js +69 -11
  49. package/dist/plugin-mcp-dist/lib/mcp-handlers.js.map +1 -1
  50. package/dist/plugin-mcp-dist/lib/mcp.test.js +340 -364
  51. package/dist/plugin-mcp-dist/lib/mcp.test.js.map +1 -1
  52. package/dist/plugin-mcp-dist/lib/plugin-websocket.d.ts.map +1 -1
  53. package/dist/plugin-mcp-dist/lib/plugin-websocket.js +0 -3
  54. package/dist/plugin-mcp-dist/lib/plugin-websocket.js.map +1 -1
  55. package/dist/plugin-mcp-dist/lib/react-export.d.ts.map +1 -1
  56. package/dist/plugin-mcp-dist/lib/react-export.js +79 -61
  57. package/dist/plugin-mcp-dist/lib/react-export.js.map +1 -1
  58. package/dist/plugin-mcp-dist/lib/schema.d.ts +8 -0
  59. package/dist/plugin-mcp-dist/lib/schema.d.ts.map +1 -1
  60. package/dist/plugin-mcp-dist/lib/schema.js +18 -1
  61. package/dist/plugin-mcp-dist/lib/schema.js.map +1 -1
  62. package/dist/plugin-mcp-dist/lib/store.d.ts +1 -1
  63. package/dist/plugin-mcp-dist/lib/store.d.ts.map +1 -1
  64. package/dist/plugin-mcp-dist/lib/tunnel-integration.test.d.ts +2 -0
  65. package/dist/plugin-mcp-dist/lib/tunnel-integration.test.d.ts.map +1 -0
  66. package/dist/plugin-mcp-dist/lib/tunnel-integration.test.js +147 -0
  67. package/dist/plugin-mcp-dist/lib/tunnel-integration.test.js.map +1 -0
  68. package/dist/plugin-mcp-dist/lib/tunnel.d.ts +46 -0
  69. package/dist/plugin-mcp-dist/lib/tunnel.d.ts.map +1 -0
  70. package/dist/plugin-mcp-dist/lib/tunnel.js +117 -0
  71. package/dist/plugin-mcp-dist/lib/tunnel.js.map +1 -0
  72. package/dist/plugin-mcp-dist/lib/upstream-socket.d.ts +13 -0
  73. package/dist/plugin-mcp-dist/lib/upstream-socket.d.ts.map +1 -0
  74. package/dist/plugin-mcp-dist/lib/upstream-socket.js +56 -0
  75. package/dist/plugin-mcp-dist/lib/upstream-socket.js.map +1 -0
  76. package/dist/plugin-mcp-dist/lib/upstream-socket.test.d.ts +2 -0
  77. package/dist/plugin-mcp-dist/lib/upstream-socket.test.d.ts.map +1 -0
  78. package/dist/plugin-mcp-dist/lib/upstream-socket.test.js +212 -0
  79. package/dist/plugin-mcp-dist/lib/upstream-socket.test.js.map +1 -0
  80. package/dist/plugin-mcp-dist/lib/utils.d.ts +1 -9
  81. package/dist/plugin-mcp-dist/lib/utils.d.ts.map +1 -1
  82. package/dist/plugin-mcp-dist/lib/utils.js +13 -9
  83. package/dist/plugin-mcp-dist/lib/utils.js.map +1 -1
  84. package/dist/react.d.ts +1 -1
  85. package/dist/react.d.ts.map +1 -1
  86. package/dist/react.js +7 -13
  87. package/dist/react.js.map +1 -1
  88. package/dist/version.d.ts +1 -1
  89. package/dist/version.js +1 -1
  90. package/package.json +7 -8
  91. package/src/babel-jsx.ts +99 -0
  92. package/src/cli.ts +295 -42
  93. package/src/css-core.ts +277 -0
  94. package/src/css.tsx +10 -276
  95. package/src/exporter.test.ts +82 -0
  96. package/src/exporter.ts +92 -11
  97. package/src/framer.d.ts +128 -0
  98. package/src/framer.js +820 -428
  99. package/src/plugin-mcp-dist/lib/framer.d.ts +2 -5
  100. package/src/plugin-mcp-dist/lib/framer.d.ts.map +1 -1
  101. package/src/plugin-mcp-dist/lib/framer.js +90 -23
  102. package/src/plugin-mcp-dist/lib/framer.js.map +1 -1
  103. package/src/plugin-mcp-dist/lib/framer.test.d.ts +2 -0
  104. package/src/plugin-mcp-dist/lib/framer.test.d.ts.map +1 -0
  105. package/src/plugin-mcp-dist/lib/framer.test.js +213 -0
  106. package/src/plugin-mcp-dist/lib/framer.test.js.map +1 -0
  107. package/src/plugin-mcp-dist/lib/mcp-handlers.d.ts +2 -2
  108. package/src/plugin-mcp-dist/lib/mcp-handlers.d.ts.map +1 -1
  109. package/src/plugin-mcp-dist/lib/mcp-handlers.js +69 -11
  110. package/src/plugin-mcp-dist/lib/mcp-handlers.js.map +1 -1
  111. package/src/plugin-mcp-dist/lib/mcp.test.js +340 -364
  112. package/src/plugin-mcp-dist/lib/mcp.test.js.map +1 -1
  113. package/src/plugin-mcp-dist/lib/plugin-websocket.d.ts.map +1 -1
  114. package/src/plugin-mcp-dist/lib/plugin-websocket.js +0 -3
  115. package/src/plugin-mcp-dist/lib/plugin-websocket.js.map +1 -1
  116. package/src/plugin-mcp-dist/lib/react-export.d.ts +1 -1
  117. package/src/plugin-mcp-dist/lib/react-export.d.ts.map +1 -1
  118. package/src/plugin-mcp-dist/lib/react-export.js +79 -61
  119. package/src/plugin-mcp-dist/lib/react-export.js.map +1 -1
  120. package/src/plugin-mcp-dist/lib/schema.d.ts +11 -3
  121. package/src/plugin-mcp-dist/lib/schema.d.ts.map +1 -1
  122. package/src/plugin-mcp-dist/lib/schema.js +18 -1
  123. package/src/plugin-mcp-dist/lib/schema.js.map +1 -1
  124. package/src/plugin-mcp-dist/lib/tunnel-integration.test.d.ts +2 -0
  125. package/src/plugin-mcp-dist/lib/tunnel-integration.test.d.ts.map +1 -0
  126. package/src/plugin-mcp-dist/lib/tunnel-integration.test.js +146 -0
  127. package/src/plugin-mcp-dist/lib/tunnel-integration.test.js.map +1 -0
  128. package/src/plugin-mcp-dist/lib/tunnel.d.ts +55 -0
  129. package/src/plugin-mcp-dist/lib/tunnel.d.ts.map +1 -0
  130. package/src/plugin-mcp-dist/lib/tunnel.js +116 -0
  131. package/src/plugin-mcp-dist/lib/tunnel.js.map +1 -0
  132. package/src/plugin-mcp-dist/lib/upstream-socket.d.ts +28 -0
  133. package/src/plugin-mcp-dist/lib/upstream-socket.d.ts.map +1 -0
  134. package/src/plugin-mcp-dist/lib/upstream-socket.js +55 -0
  135. package/src/plugin-mcp-dist/lib/upstream-socket.js.map +1 -0
  136. package/src/plugin-mcp-dist/lib/upstream-socket.test.d.ts +5 -0
  137. package/src/plugin-mcp-dist/lib/upstream-socket.test.d.ts.map +1 -0
  138. package/src/plugin-mcp-dist/lib/upstream-socket.test.js +211 -0
  139. package/src/plugin-mcp-dist/lib/upstream-socket.test.js.map +1 -0
  140. package/src/plugin-mcp-dist/lib/utils.d.ts +2 -2
  141. package/src/plugin-mcp-dist/lib/utils.d.ts.map +1 -1
  142. package/src/plugin-mcp-dist/lib/utils.js +13 -9
  143. package/src/plugin-mcp-dist/lib/utils.js.map +1 -1
  144. package/src/react.tsx +7 -19
  145. package/src/styles/framer.css +34 -64
  146. package/src/version.ts +1 -1
  147. package/dist/framer-chunks/default-blog-sqlite-7ZHEY3GT-27R5KAAW.js +0 -9
  148. package/dist/framer-chunks/fontshare-4THNDPMZ-BJQGNHXN.js +0 -27099
  149. package/dist/framer-chunks/fontshare-B2QLD7YB-4BZEAA37.js +0 -119
  150. package/dist/framer-chunks/fontshare-O22OBJ3D-ALBQLFE5.js +0 -825
  151. package/dist/framer-chunks/framer-font-45AI7UCZ-LU7DEIDM.js +0 -7
  152. package/dist/framer-chunks/google-3FCAKCAC-P5EL6KGL.js +0 -623876
  153. package/dist/framer-chunks/google-3SZHWBC6-OBXS3UIH.js +0 -1627
  154. package/dist/framer-chunks/google-GXDJLGJB-HHIXFE4M.js +0 -6885
  155. package/dist/framer-chunks/sqlite-wasm-FGP37EAY-HR6PIAJQ.js +0 -11479
  156. package/dist/framer-chunks/sqlite3-SISQ6ENZ-KMXYXSSV.js +0 -9
  157. package/dist/generated/api-client.d.ts +0 -21
  158. package/dist/generated/api-client.d.ts.map +0 -1
  159. package/dist/generated/api-client.js +0 -27
  160. package/dist/generated/api-client.js.map +0 -1
  161. package/src/generated/api-client.d.ts +0 -1238
  162. package/src/generated/api-client.js +0 -26
@@ -1,1238 +0,0 @@
1
- export declare function createClient({
2
- url,
3
- headers: extraHeaders,
4
- }: {
5
- url: string
6
- headers?: Record<string, string>
7
- }): Promise<{
8
- api: {
9
- plugins: {
10
- [x: string]: {
11
- get: (
12
- options?:
13
- | {
14
- headers?: Record<string, unknown> | undefined
15
- query?: Record<string, unknown> | undefined
16
- fetch?: RequestInit | undefined
17
- }
18
- | undefined,
19
- ) => Promise<
20
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
21
- [x: number]: any
22
- 200: any
23
- }>
24
- >
25
- }
26
- rewritePlugin: {
27
- submitReview: {
28
- post: (
29
- request: {
30
- stars: number
31
- generationId: number
32
- },
33
- options?:
34
- | {
35
- headers?: Record<string, unknown> | undefined
36
- query?: Record<string, unknown> | undefined
37
- fetch?: RequestInit | undefined
38
- }
39
- | undefined,
40
- ) => Promise<
41
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
42
- 200:
43
- | {
44
- success: boolean
45
- error?: undefined
46
- }
47
- | {
48
- success: boolean
49
- error: string
50
- }
51
- }>
52
- >
53
- }
54
- rephrase: {
55
- post: (
56
- request: {
57
- oldText: import('plugin-mcp').FramerLayersTree
58
- sourceHtml: string | null
59
- url: string
60
- description?: string | null | undefined
61
- projectName?: string | undefined
62
- pagePath?: string | undefined
63
- },
64
- options?:
65
- | {
66
- headers?: Record<string, unknown> | undefined
67
- query?: Record<string, unknown> | undefined
68
- fetch?: RequestInit | undefined
69
- }
70
- | undefined,
71
- ) => Promise<
72
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
73
- 200: AsyncGenerator<
74
- | {
75
- type: 'chunk'
76
- partialItem: Partial<
77
- import('plugin-mcp').NewExtractedNode
78
- > | null
79
- completeObj:
80
- | import('type-fest/source/required-deep').RequiredObjectDeep<
81
- import('plugin-mcp').NewExtractedNode
82
- >
83
- | null
84
- fullItem: import('type-fest/source/required-deep').RequiredObjectDeep<
85
- import('plugin-mcp').NewExtractedNode
86
- >
87
- generationId?: undefined
88
- }
89
- | {
90
- type: 'chunk'
91
- partialItem: Partial<
92
- import('plugin-mcp').NewExtractedNode
93
- > | null
94
- completeObj:
95
- | import('type-fest/source/required-deep').RequiredObjectDeep<
96
- import('plugin-mcp').NewExtractedNode
97
- >
98
- | null
99
- fullItem: undefined
100
- generationId?: undefined
101
- }
102
- | {
103
- type: 'chunk'
104
- partialItem: Partial<
105
- import('plugin-mcp').NewExtractedNode
106
- > | null
107
- completeObj:
108
- | import('type-fest/source/required-deep').RequiredObjectDeep<
109
- import('plugin-mcp').NewExtractedNode
110
- >
111
- | null
112
- fullXml: string
113
- generationId?: undefined
114
- }
115
- | {
116
- type: 'generation'
117
- generationId: any
118
- },
119
- void,
120
- unknown
121
- >
122
- }>
123
- >
124
- }
125
- discardGeneration: {
126
- post: (
127
- request: {
128
- id: number
129
- },
130
- options?:
131
- | {
132
- headers?: Record<string, unknown> | undefined
133
- query?: Record<string, unknown> | undefined
134
- fetch?: RequestInit | undefined
135
- }
136
- | undefined,
137
- ) => Promise<
138
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
139
- 200:
140
- | {
141
- error: string
142
- success?: undefined
143
- }
144
- | {
145
- success: boolean
146
- error?: undefined
147
- }
148
- }>
149
- >
150
- }
151
- getCredits: {
152
- post: (
153
- request?: unknown,
154
- options?:
155
- | {
156
- headers?: Record<string, unknown> | undefined
157
- query?: Record<string, unknown> | undefined
158
- fetch?: RequestInit | undefined
159
- }
160
- | undefined,
161
- ) => Promise<
162
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
163
- 200: import('./credits').RemainingCredits
164
- }>
165
- >
166
- }
167
- getWebsiteHtml: {
168
- post: (
169
- request: {
170
- domain: string
171
- },
172
- options?:
173
- | {
174
- headers?: Record<string, unknown> | undefined
175
- query?: Record<string, unknown> | undefined
176
- fetch?: RequestInit | undefined
177
- }
178
- | undefined,
179
- ) => Promise<
180
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
181
- 200: {
182
- html: string
183
- extractedDescription: string
184
- }
185
- }>
186
- >
187
- }
188
- }
189
- markdownPlugin: {
190
- health: {
191
- get: (
192
- options?:
193
- | {
194
- headers?: Record<string, unknown> | undefined
195
- query?: Record<string, unknown> | undefined
196
- fetch?: RequestInit | undefined
197
- }
198
- | undefined,
199
- ) => Promise<
200
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
201
- 200: string
202
- }>
203
- >
204
- }
205
- githubRepoList: {
206
- post: (
207
- request: {
208
- githubAccountLogin: string
209
- },
210
- options?:
211
- | {
212
- headers?: Record<string, unknown> | undefined
213
- query?: Record<string, unknown> | undefined
214
- fetch?: RequestInit | undefined
215
- }
216
- | undefined,
217
- ) => Promise<
218
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
219
- 200: {
220
- repos: {
221
- repo: string
222
- owner: string
223
- repoSlug: string
224
- private: boolean
225
- url: string
226
- }[]
227
- }
228
- }>
229
- >
230
- }
231
- syncsThisMonth: {
232
- post: (
233
- request: {
234
- projectId?: string | undefined
235
- projectName?: string | undefined
236
- },
237
- options?:
238
- | {
239
- headers?: Record<string, unknown> | undefined
240
- query?: Record<string, unknown> | undefined
241
- fetch?: RequestInit | undefined
242
- }
243
- | undefined,
244
- ) => Promise<
245
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
246
- 200: number
247
- }>
248
- >
249
- }
250
- subscriptions: {
251
- get: (options: {
252
- headers?: Record<string, unknown> | undefined
253
- query: {
254
- projectId?: string | undefined
255
- }
256
- fetch?: RequestInit | undefined
257
- }) => Promise<
258
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
259
- 200: {
260
- subs: ({
261
- orgId: string
262
- email: string | null
263
- createdAt: Date
264
- variantId: string
265
- subscriptionId: string
266
- orderId: string | null
267
- itemId: string | null
268
- productId: string
269
- variantName: string | null
270
- quantity: number
271
- status: import('db/generated/enums').SubscriptionStatus
272
- endsAt: Date | null
273
- provider: import('db/generated/enums').PaymentProvider
274
- metadata:
275
- | import('@prisma/client/runtime/client').JsonValue
276
- | null
277
- pluginName:
278
- | import('db/generated/enums').PluginName
279
- | null
280
- customerId: string | null
281
- } | null)[]
282
- activeSub: {
283
- orgId: string
284
- email: string | null
285
- createdAt: Date
286
- variantId: string
287
- subscriptionId: string
288
- orderId: string | null
289
- itemId: string | null
290
- productId: string
291
- variantName: string | null
292
- quantity: number
293
- status: import('db/generated/enums').SubscriptionStatus
294
- endsAt: Date | null
295
- provider: import('db/generated/enums').PaymentProvider
296
- metadata:
297
- | import('@prisma/client/runtime/client').JsonValue
298
- | null
299
- pluginName:
300
- | import('db/generated/enums').PluginName
301
- | null
302
- customerId: string | null
303
- } | null
304
- freeSyncs: number
305
- manageSubUrl: string | undefined
306
- }
307
- }>
308
- >
309
- }
310
- frontmatter: {
311
- post: (
312
- request: {
313
- owner: string
314
- repo: string
315
- basePath: string
316
- githubAccountLogin: string
317
- },
318
- options?:
319
- | {
320
- headers?: Record<string, unknown> | undefined
321
- query?: Record<string, unknown> | undefined
322
- fetch?: RequestInit | undefined
323
- }
324
- | undefined,
325
- ) => Promise<
326
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
327
- 200: {
328
- frontMatter: {
329
- properties: Record<
330
- string,
331
- import('./spiceflow-github-sync-plugin').MarkdownPluginFrontMatterProperty
332
- >
333
- order: string[]
334
- }
335
- }
336
- }>
337
- >
338
- }
339
- syncGithub: {
340
- post: (
341
- request: {
342
- owner: string
343
- repo: string
344
- basePath: string
345
- githubAccountLogin: string
346
- projectId: string
347
- projectName: string
348
- itemIds?: string[] | undefined
349
- mapFieldsConfig?:
350
- | import('framer-plugin').ManagedCollectionField[]
351
- | undefined
352
- onlyGetFrontmatter?: boolean | undefined
353
- enablePartialUpdate?: boolean | undefined
354
- },
355
- options?:
356
- | {
357
- headers?: Record<string, unknown> | undefined
358
- query?: Record<string, unknown> | undefined
359
- fetch?: RequestInit | undefined
360
- }
361
- | undefined,
362
- ) => Promise<
363
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
364
- 200: {
365
- files: {
366
- frontMatter: {
367
- [key: string]: any
368
- }
369
- id: string
370
- slug: string
371
- path: string
372
- pagePath: string
373
- title: any
374
- foundMdx: boolean | {}
375
- sha: string
376
- html?: string | undefined
377
- }[]
378
- toDelete: string[]
379
- idsToDelete: string[]
380
- }
381
- }>
382
- >
383
- }
384
- checkBasePath: {
385
- post: (
386
- request: {
387
- owner: string
388
- repo: string
389
- basePath: string
390
- githubAccountLogin: string
391
- },
392
- options?:
393
- | {
394
- headers?: Record<string, unknown> | undefined
395
- query?: Record<string, unknown> | undefined
396
- fetch?: RequestInit | undefined
397
- }
398
- | undefined,
399
- ) => Promise<
400
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
401
- 200: {
402
- error: string
403
- formattedBasePath: string
404
- }
405
- }>
406
- >
407
- }
408
- }
409
- reactExportPlugin: {
410
- health: {
411
- get: (
412
- options?:
413
- | {
414
- headers?: Record<string, unknown> | undefined
415
- query?: Record<string, unknown> | undefined
416
- fetch?: RequestInit | undefined
417
- }
418
- | undefined,
419
- ) => Promise<
420
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
421
- 200: string
422
- }>
423
- >
424
- }
425
- project: ((params: { projectId: string | number }) => {
426
- get: (
427
- options?:
428
- | {
429
- headers?: Record<string, unknown> | undefined
430
- query?: Record<string, unknown> | undefined
431
- fetch?: RequestInit | undefined
432
- }
433
- | undefined,
434
- ) => Promise<
435
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
436
- 200: {
437
- project: {
438
- orgId: string
439
- projectId: string
440
- projectName: string | null
441
- createdAt: Date
442
- fullFramerProjectId: string | null
443
- websiteUrl: string | null
444
- framerUserId: string | null
445
- pageBackgroundColor: string | null
446
- connectedGitHubRepoAt: Date | null
447
- connectedGitHubRepoName: string | null
448
- invitedGitHubRepoUsername: string | null
449
- lastGitHubSyncAt: Date | null
450
- creationReason: import('db/generated/enums').ReactExportCreationReason
451
- }
452
- components: {
453
- url: string
454
- name: string
455
- projectId: string
456
- id: string
457
- componentIdentifier: string | null
458
- componentType: import('db/generated/enums').ReactExportComponentType
459
- }[]
460
- framerWebPages: {
461
- path: string
462
- projectId: string
463
- webPageId: string
464
- }[]
465
- colorStyles: {
466
- name: string | null
467
- projectId: string
468
- id: string
469
- lightColor: string
470
- darkColor: string
471
- }[]
472
- locales: {
473
- name: string
474
- id: string
475
- slug: string
476
- code: string
477
- }[]
478
- breakpoints: {
479
- componentId: string
480
- variantId: string
481
- width: number
482
- breakpointName: string
483
- }[]
484
- componentInstances: {
485
- webPageId: string
486
- componentId: string
487
- pageOrdering: number
488
- nodeDepth: number
489
- controls: import('@prisma/client/runtime/client').JsonValue
490
- }[]
491
- }
492
- }>
493
- >
494
- publish: {
495
- post: (
496
- request: {
497
- components: {
498
- name: string
499
- url: string
500
- projectId: string
501
- id: string
502
- componentIdentifier: string | null
503
- componentType: import('db/generated/enums').ReactExportComponentType
504
- }[]
505
- },
506
- options?:
507
- | {
508
- headers?:
509
- | Record<string, unknown>
510
- | undefined
511
- query?:
512
- | Record<string, unknown>
513
- | undefined
514
- fetch?: RequestInit | undefined
515
- }
516
- | undefined,
517
- ) => Promise<
518
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
519
- 200: string
520
- }>
521
- >
522
- }
523
- subscribe: {
524
- get: (
525
- options?:
526
- | {
527
- headers?:
528
- | Record<string, unknown>
529
- | undefined
530
- query?:
531
- | Record<string, unknown>
532
- | undefined
533
- fetch?: RequestInit | undefined
534
- }
535
- | undefined,
536
- ) => Promise<
537
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
538
- 200: AsyncGenerator<
539
- | {
540
- type: 'change'
541
- components: import('db').ReactExportComponent[]
542
- }
543
- | {
544
- project: {
545
- orgId: string
546
- projectId: string
547
- projectName: string | null
548
- createdAt: Date
549
- fullFramerProjectId: string | null
550
- websiteUrl: string | null
551
- framerUserId: string | null
552
- pageBackgroundColor: string | null
553
- connectedGitHubRepoAt: Date | null
554
- connectedGitHubRepoName:
555
- | string
556
- | null
557
- invitedGitHubRepoUsername:
558
- | string
559
- | null
560
- lastGitHubSyncAt: Date | null
561
- creationReason: import('db/generated/enums').ReactExportCreationReason
562
- }
563
- components: {
564
- url: string
565
- name: string
566
- projectId: string
567
- id: string
568
- componentIdentifier: string | null
569
- componentType: import('db/generated/enums').ReactExportComponentType
570
- }[]
571
- framerWebPages: {
572
- path: string
573
- projectId: string
574
- webPageId: string
575
- }[]
576
- colorStyles: {
577
- name: string | null
578
- projectId: string
579
- id: string
580
- lightColor: string
581
- darkColor: string
582
- }[]
583
- locales: {
584
- name: string
585
- id: string
586
- slug: string
587
- code: string
588
- }[]
589
- breakpoints: {
590
- componentId: string
591
- variantId: string
592
- width: number
593
- breakpointName: string
594
- }[]
595
- componentInstances: {
596
- webPageId: string
597
- componentId: string
598
- pageOrdering: number
599
- nodeDepth: number
600
- controls: import('@prisma/client/runtime/client').JsonValue
601
- }[]
602
- type: 'project'
603
- },
604
- void,
605
- unknown
606
- >
607
- }>
608
- >
609
- }
610
- }) & {}
611
- subscriptions: {
612
- get: (options: {
613
- headers?: Record<string, unknown> | undefined
614
- query: {
615
- projectId: string
616
- forSubscriptionUpgrade?:
617
- | string
618
- | boolean
619
- | undefined
620
- }
621
- fetch?: RequestInit | undefined
622
- }) => Promise<
623
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
624
- 200: {
625
- freeComponents: number
626
- subs: ({
627
- orgId: string
628
- email: string | null
629
- createdAt: Date
630
- variantId: string
631
- subscriptionId: string
632
- orderId: string | null
633
- itemId: string | null
634
- productId: string
635
- variantName: string | null
636
- quantity: number
637
- status: import('db/generated/enums').SubscriptionStatus
638
- endsAt: Date | null
639
- provider: import('db/generated/enums').PaymentProvider
640
- metadata:
641
- | import('@prisma/client/runtime/client').JsonValue
642
- | null
643
- pluginName:
644
- | import('db/generated/enums').PluginName
645
- | null
646
- customerId: string | null
647
- } | null)[]
648
- activeSub: {
649
- orgId: string
650
- email: string | null
651
- createdAt: Date
652
- variantId: string
653
- subscriptionId: string
654
- orderId: string | null
655
- itemId: string | null
656
- productId: string
657
- variantName: string | null
658
- quantity: number
659
- status: import('db/generated/enums').SubscriptionStatus
660
- endsAt: Date | null
661
- provider: import('db/generated/enums').PaymentProvider
662
- metadata:
663
- | import('@prisma/client/runtime/client').JsonValue
664
- | null
665
- pluginName:
666
- | import('db/generated/enums').PluginName
667
- | null
668
- customerId: string | null
669
- } | null
670
- manageSubUrl: string | undefined
671
- subscriptionStatus:
672
- | import('db/generated/enums').SubscriptionStatus
673
- | undefined
674
- }
675
- }>
676
- >
677
- }
678
- upsertUnframerRepoWithAI: {
679
- post: (
680
- request: {
681
- secret: string
682
- projectId: string
683
- sendEmail?: boolean | undefined
684
- },
685
- options?:
686
- | {
687
- headers?: Record<string, unknown> | undefined
688
- query?: Record<string, unknown> | undefined
689
- fetch?: RequestInit | undefined
690
- }
691
- | undefined,
692
- ) => Promise<
693
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
694
- 200: AsyncGenerator<
695
- | {
696
- message: string
697
- success?: undefined
698
- result?: undefined
699
- }
700
- | {
701
- success: boolean
702
- result: import('resend').CreateEmailResponse
703
- message?: undefined
704
- },
705
- | Response
706
- | {
707
- success: boolean
708
- error: string
709
- result?: undefined
710
- }
711
- | {
712
- success: boolean
713
- error?: undefined
714
- result?: undefined
715
- }
716
- | {
717
- success: boolean
718
- result: import('resend').CreateEmailResponse
719
- error?: undefined
720
- }
721
- | undefined,
722
- unknown
723
- >
724
- }>
725
- >
726
- }
727
- upsertProject: {
728
- post: (
729
- request: {
730
- components: {
731
- name: string
732
- url: string
733
- projectId: string
734
- id: string
735
- componentIdentifier: string | null
736
- componentType: import('db/generated/enums').ReactExportComponentType
737
- }[]
738
- projectId: string
739
- colorStyles: {
740
- name: string | null
741
- projectId: string
742
- id: string
743
- lightColor: string
744
- darkColor: string
745
- }[]
746
- breakpoints?:
747
- | {
748
- projectId: string
749
- componentId: string
750
- variantId: string
751
- width: number
752
- breakpointName: string
753
- }[]
754
- | undefined
755
- pages?:
756
- | {
757
- path: string
758
- projectId: string
759
- webPageId: string
760
- }[]
761
- | undefined
762
- fullFramerProjectId?: string | undefined
763
- websiteUrl?: string | undefined
764
- locales?:
765
- | {
766
- name: string
767
- projectId: string
768
- id: string
769
- slug: string
770
- code: string
771
- }[]
772
- | undefined
773
- projectName?: string | null | undefined
774
- framerUserId?: string | undefined
775
- pageBackgroundColor?: string | undefined
776
- componentInstances?:
777
- | import('db').ReactExportComponentInstanceUncheckedCreateInput[]
778
- | undefined
779
- creationReason?:
780
- | 'USER_REQUESTED'
781
- | 'MCP_FIRST_OPEN'
782
- | undefined
783
- },
784
- options?:
785
- | {
786
- headers?: Record<string, unknown> | undefined
787
- query?: Record<string, unknown> | undefined
788
- fetch?: RequestInit | undefined
789
- }
790
- | undefined,
791
- ) => Promise<
792
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
793
- 200: {
794
- projectId: string
795
- }
796
- }>
797
- >
798
- }
799
- }
800
- llm: {
801
- health: {
802
- get: (
803
- options?:
804
- | {
805
- headers?: Record<string, unknown> | undefined
806
- query?: Record<string, unknown> | undefined
807
- fetch?: RequestInit | undefined
808
- }
809
- | undefined,
810
- ) => Promise<
811
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
812
- 200: string
813
- }>
814
- >
815
- }
816
- submitReview: {
817
- post: (
818
- request: {
819
- stars: number
820
- generationId: number
821
- },
822
- options?:
823
- | {
824
- headers?: Record<string, unknown> | undefined
825
- query?: Record<string, unknown> | undefined
826
- fetch?: RequestInit | undefined
827
- }
828
- | undefined,
829
- ) => Promise<
830
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
831
- 200:
832
- | {
833
- success: boolean
834
- error?: undefined
835
- }
836
- | {
837
- success: boolean
838
- error: string
839
- }
840
- }>
841
- >
842
- }
843
- publish: {
844
- post: (
845
- request: {
846
- randomId: string
847
- callId: string
848
- tree: import('plugin-mcp').FramerLayersTree
849
- },
850
- options?:
851
- | {
852
- headers?: Record<string, unknown> | undefined
853
- query?: Record<string, unknown> | undefined
854
- fetch?: RequestInit | undefined
855
- }
856
- | undefined,
857
- ) => Promise<
858
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
859
- 200: string
860
- }>
861
- >
862
- }
863
- getCredits: {
864
- post: (
865
- request?: unknown,
866
- options?:
867
- | {
868
- headers?: Record<string, unknown> | undefined
869
- query?: Record<string, unknown> | undefined
870
- fetch?: RequestInit | undefined
871
- }
872
- | undefined,
873
- ) => Promise<
874
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
875
- 200: import('./credits').RemainingCredits
876
- }>
877
- >
878
- }
879
- generate: {
880
- post: (
881
- request: {
882
- randomId: string
883
- description: string
884
- tree: import('plugin-mcp').FramerLayersTree
885
- projectId?: string | undefined
886
- projectName?: string | undefined
887
- },
888
- options?:
889
- | {
890
- headers?: Record<string, unknown> | undefined
891
- query?: Record<string, unknown> | undefined
892
- fetch?: RequestInit | undefined
893
- }
894
- | undefined,
895
- ) => Promise<
896
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
897
- 200: AsyncGenerator<
898
- | {
899
- fullItem: import('type-fest/source/required-deep').RequiredObjectDeep<
900
- import('plugin-mcp').NewExtractedNode
901
- >
902
- type: 'fullItem'
903
- partialItem: undefined
904
- nodeId: string
905
- }
906
- | {
907
- fullItem: undefined
908
- type: 'partialItem'
909
- partialItem: Partial<
910
- import('plugin-mcp').NewExtractedNode
911
- >
912
- nodeId: string
913
- }
914
- | {
915
- type: 'tool-call'
916
- id: string
917
- toolName: string
918
- callId: string
919
- nodeIds: never[]
920
- },
921
- {
922
- fullXml: string
923
- },
924
- unknown
925
- >
926
- }>
927
- >
928
- }
929
- subscriptions: {
930
- get: (options: {
931
- headers?: Record<string, unknown> | undefined
932
- query: {
933
- projectId: string
934
- }
935
- fetch?: RequestInit | undefined
936
- }) => Promise<
937
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
938
- 200: {
939
- subs: ({
940
- orgId: string
941
- email: string | null
942
- createdAt: Date
943
- variantId: string
944
- subscriptionId: string
945
- orderId: string | null
946
- itemId: string | null
947
- productId: string
948
- variantName: string | null
949
- quantity: number
950
- status: import('db/generated/enums').SubscriptionStatus
951
- endsAt: Date | null
952
- provider: import('db/generated/enums').PaymentProvider
953
- metadata:
954
- | import('@prisma/client/runtime/client').JsonValue
955
- | null
956
- pluginName:
957
- | import('db/generated/enums').PluginName
958
- | null
959
- customerId: string | null
960
- } | null)[]
961
- activeSub: {
962
- orgId: string
963
- email: string | null
964
- createdAt: Date
965
- variantId: string
966
- subscriptionId: string
967
- orderId: string | null
968
- itemId: string | null
969
- productId: string
970
- variantName: string | null
971
- quantity: number
972
- status: import('db/generated/enums').SubscriptionStatus
973
- endsAt: Date | null
974
- provider: import('db/generated/enums').PaymentProvider
975
- metadata:
976
- | import('@prisma/client/runtime/client').JsonValue
977
- | null
978
- pluginName:
979
- | import('db/generated/enums').PluginName
980
- | null
981
- customerId: string | null
982
- } | null
983
- manageSubUrl: string | undefined
984
- }
985
- }>
986
- >
987
- }
988
- }
989
- angledScreen: {
990
- generationsForUser: {
991
- get: (options: {
992
- headers?: Record<string, unknown> | undefined
993
- query: {
994
- framerUserId: string
995
- }
996
- fetch?: RequestInit | undefined
997
- }) => Promise<
998
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
999
- 200: {
1000
- generations: number
1001
- hasLicenseKey: boolean
1002
- maxFreeGenerations: number
1003
- shouldBuyLicense: boolean
1004
- framerUserId: string
1005
- }
1006
- }>
1007
- >
1008
- }
1009
- incrementGenerations: {
1010
- post: (
1011
- request: {
1012
- framerUserId: string
1013
- userName?: string | undefined
1014
- },
1015
- options?:
1016
- | {
1017
- headers?: Record<string, unknown> | undefined
1018
- query?: Record<string, unknown> | undefined
1019
- fetch?: RequestInit | undefined
1020
- }
1021
- | undefined,
1022
- ) => Promise<
1023
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1024
- 200: {}
1025
- }>
1026
- >
1027
- }
1028
- activate: {
1029
- post: (
1030
- request: {
1031
- framerUserId: string
1032
- licenseKey: string
1033
- userName?: string | undefined
1034
- },
1035
- options?:
1036
- | {
1037
- headers?: Record<string, unknown> | undefined
1038
- query?: Record<string, unknown> | undefined
1039
- fetch?: RequestInit | undefined
1040
- }
1041
- | undefined,
1042
- ) => Promise<
1043
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1044
- 200:
1045
- | {
1046
- error: string
1047
- }
1048
- | {
1049
- error: null
1050
- }
1051
- }>
1052
- >
1053
- }
1054
- }
1055
- currentOrg: {
1056
- post: (
1057
- request?: unknown,
1058
- options?:
1059
- | {
1060
- headers?: Record<string, unknown> | undefined
1061
- query?: Record<string, unknown> | undefined
1062
- fetch?: RequestInit | undefined
1063
- }
1064
- | undefined,
1065
- ) => Promise<
1066
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1067
- 200: {
1068
- orgId: string
1069
- email: string | null | undefined
1070
- }
1071
- }>
1072
- >
1073
- }
1074
- getSessionForKey: {
1075
- post: (
1076
- request: {
1077
- key?: string | undefined
1078
- projectId?: string | undefined
1079
- },
1080
- options?:
1081
- | {
1082
- headers?: Record<string, unknown> | undefined
1083
- query?: Record<string, unknown> | undefined
1084
- fetch?: RequestInit | undefined
1085
- }
1086
- | undefined,
1087
- ) => Promise<
1088
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1089
- 200:
1090
- | {
1091
- error: string
1092
- orgId?: undefined
1093
- email?: undefined
1094
- key?: undefined
1095
- requestData?: undefined
1096
- }
1097
- | {
1098
- orgId: string
1099
- email: string
1100
- key: string
1101
- requestData:
1102
- | string
1103
- | number
1104
- | true
1105
- | import('db/kysely.types').JsonArray
1106
- | import('db/kysely.types').JsonObject
1107
- error?: undefined
1108
- }
1109
- }>
1110
- >
1111
- }
1112
- health: {
1113
- get: (
1114
- options?:
1115
- | {
1116
- headers?: Record<string, unknown> | undefined
1117
- query?: Record<string, unknown> | undefined
1118
- fetch?: RequestInit | undefined
1119
- }
1120
- | undefined,
1121
- ) => Promise<
1122
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1123
- readonly 200: {
1124
- ok: boolean
1125
- }
1126
- }>
1127
- >
1128
- }
1129
- 'sse-test': {
1130
- get: (
1131
- options?:
1132
- | {
1133
- headers?: Record<string, unknown> | undefined
1134
- query?: Record<string, unknown> | undefined
1135
- fetch?: RequestInit | undefined
1136
- }
1137
- | undefined,
1138
- ) => Promise<
1139
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1140
- 200: AsyncGenerator<
1141
- | 'hello'
1142
- | {
1143
- ok: boolean
1144
- },
1145
- never,
1146
- unknown
1147
- >
1148
- }>
1149
- >
1150
- }
1151
- errorExample: {
1152
- get: (
1153
- options?:
1154
- | {
1155
- headers?: Record<string, unknown> | undefined
1156
- query?: Record<string, unknown> | undefined
1157
- fetch?: RequestInit | undefined
1158
- }
1159
- | undefined,
1160
- ) => Promise<
1161
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1162
- readonly 200: {
1163
- ok: boolean
1164
- }
1165
- }>
1166
- >
1167
- }
1168
- validateSession: {
1169
- post: (
1170
- request: {
1171
- sessionId: string
1172
- framerUserId: string
1173
- },
1174
- options?:
1175
- | {
1176
- headers?: Record<string, unknown> | undefined
1177
- query?: Record<string, unknown> | undefined
1178
- fetch?: RequestInit | undefined
1179
- }
1180
- | undefined,
1181
- ) => Promise<
1182
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1183
- 200: {
1184
- valid: boolean
1185
- error?: string | undefined
1186
- }
1187
- }>
1188
- >
1189
- }
1190
- mcp: {
1191
- createSession: {
1192
- post: (
1193
- request: {
1194
- supabaseUserId: string
1195
- email?: string | undefined
1196
- },
1197
- options?:
1198
- | {
1199
- headers?: Record<string, unknown> | undefined
1200
- query?: Record<string, unknown> | undefined
1201
- fetch?: RequestInit | undefined
1202
- }
1203
- | undefined,
1204
- ) => Promise<
1205
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1206
- 200: {
1207
- sessionToken: string
1208
- framerUserId: string
1209
- }
1210
- }>
1211
- >
1212
- }
1213
- validateSession: {
1214
- post: (
1215
- request: {
1216
- sessionToken: string
1217
- },
1218
- options?:
1219
- | {
1220
- headers?: Record<string, unknown> | undefined
1221
- query?: Record<string, unknown> | undefined
1222
- fetch?: RequestInit | undefined
1223
- }
1224
- | undefined,
1225
- ) => Promise<
1226
- import('spiceflow/client').SpiceflowClient.ClientResponse<{
1227
- 200: {
1228
- framerUserId: string
1229
- userId: string | null
1230
- email: string
1231
- }
1232
- }>
1233
- >
1234
- }
1235
- }
1236
- }
1237
- }
1238
- }>