unframer 3.0.2 → 3.0.5

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