@corsair-dev/figma 0.1.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 (65) hide show
  1. package/LICENSE +191 -0
  2. package/dist/client.d.ts +13 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/endpoints/activityLogs.d.ts +3 -0
  5. package/dist/endpoints/activityLogs.d.ts.map +1 -0
  6. package/dist/endpoints/comments.d.ts +8 -0
  7. package/dist/endpoints/comments.d.ts.map +1 -0
  8. package/dist/endpoints/components.d.ts +8 -0
  9. package/dist/endpoints/components.d.ts.map +1 -0
  10. package/dist/endpoints/designTools.d.ts +7 -0
  11. package/dist/endpoints/designTools.d.ts.map +1 -0
  12. package/dist/endpoints/devResources.d.ts +6 -0
  13. package/dist/endpoints/devResources.d.ts.map +1 -0
  14. package/dist/endpoints/example.d.ts +3 -0
  15. package/dist/endpoints/example.d.ts.map +1 -0
  16. package/dist/endpoints/files.d.ts +10 -0
  17. package/dist/endpoints/files.d.ts.map +1 -0
  18. package/dist/endpoints/index.d.ts +717 -0
  19. package/dist/endpoints/index.d.ts.map +1 -0
  20. package/dist/endpoints/libraryAnalytics.d.ts +8 -0
  21. package/dist/endpoints/libraryAnalytics.d.ts.map +1 -0
  22. package/dist/endpoints/payments.d.ts +3 -0
  23. package/dist/endpoints/payments.d.ts.map +1 -0
  24. package/dist/endpoints/projects.d.ts +3 -0
  25. package/dist/endpoints/projects.d.ts.map +1 -0
  26. package/dist/endpoints/styles.d.ts +4 -0
  27. package/dist/endpoints/styles.d.ts.map +1 -0
  28. package/dist/endpoints/types.d.ts +5643 -0
  29. package/dist/endpoints/types.d.ts.map +1 -0
  30. package/dist/endpoints/users.d.ts +3 -0
  31. package/dist/endpoints/users.d.ts.map +1 -0
  32. package/dist/endpoints/variables.d.ts +5 -0
  33. package/dist/endpoints/variables.d.ts.map +1 -0
  34. package/dist/endpoints/webhooks.d.ts +8 -0
  35. package/dist/endpoints/webhooks.d.ts.map +1 -0
  36. package/dist/error-handlers.d.ts +40 -0
  37. package/dist/error-handlers.d.ts.map +1 -0
  38. package/dist/index.d.ts +3035 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +13 -0
  41. package/dist/schema/database.d.ts +168 -0
  42. package/dist/schema/database.d.ts.map +1 -0
  43. package/dist/schema/index.d.ts +167 -0
  44. package/dist/schema/index.d.ts.map +1 -0
  45. package/dist/tsup.config.d.ts +3 -0
  46. package/dist/tsup.config.d.ts.map +1 -0
  47. package/dist/webhooks/example.d.ts +3 -0
  48. package/dist/webhooks/example.d.ts.map +1 -0
  49. package/dist/webhooks/fileComment.d.ts +3 -0
  50. package/dist/webhooks/fileComment.d.ts.map +1 -0
  51. package/dist/webhooks/fileDelete.d.ts +3 -0
  52. package/dist/webhooks/fileDelete.d.ts.map +1 -0
  53. package/dist/webhooks/fileUpdate.d.ts +3 -0
  54. package/dist/webhooks/fileUpdate.d.ts.map +1 -0
  55. package/dist/webhooks/fileVersionUpdate.d.ts +3 -0
  56. package/dist/webhooks/fileVersionUpdate.d.ts.map +1 -0
  57. package/dist/webhooks/index.d.ts +38 -0
  58. package/dist/webhooks/index.d.ts.map +1 -0
  59. package/dist/webhooks/libraryPublish.d.ts +3 -0
  60. package/dist/webhooks/libraryPublish.d.ts.map +1 -0
  61. package/dist/webhooks/ping.d.ts +3 -0
  62. package/dist/webhooks/ping.d.ts.map +1 -0
  63. package/dist/webhooks/types.d.ts +488 -0
  64. package/dist/webhooks/types.d.ts.map +1 -0
  65. package/package.json +40 -0
@@ -0,0 +1,717 @@
1
+ export declare const Comments: {
2
+ add: (ctx: import("..").FigmaContext, args: {
3
+ message: string;
4
+ file_key: string;
5
+ client_meta?: unknown;
6
+ comment_id?: string | undefined;
7
+ }) => Promise<{
8
+ id: string;
9
+ created_at?: string | undefined;
10
+ message?: string | undefined;
11
+ user?: {
12
+ id: string;
13
+ handle?: string | undefined;
14
+ img_url?: string | undefined;
15
+ } | undefined;
16
+ uuid?: string | null | undefined;
17
+ file_key?: string | undefined;
18
+ order_id?: string | null | undefined;
19
+ parent_id?: string | null | undefined;
20
+ reactions?: {
21
+ created_at?: string | undefined;
22
+ user?: {
23
+ id: string;
24
+ handle?: string | undefined;
25
+ img_url?: string | undefined;
26
+ } | undefined;
27
+ emoji?: string | undefined;
28
+ }[] | undefined;
29
+ client_meta?: unknown;
30
+ resolved_at?: string | null | undefined;
31
+ }>;
32
+ delete: (ctx: import("..").FigmaContext, args: {
33
+ file_key: string;
34
+ comment_id: string;
35
+ }) => Promise<{
36
+ status?: number | undefined;
37
+ error?: boolean | undefined;
38
+ }>;
39
+ list: (ctx: import("..").FigmaContext, args: {
40
+ file_key: string;
41
+ as_md?: boolean | undefined;
42
+ }) => Promise<{
43
+ comments?: {
44
+ id: string;
45
+ created_at?: string | undefined;
46
+ message?: string | undefined;
47
+ user?: {
48
+ id: string;
49
+ handle?: string | undefined;
50
+ img_url?: string | undefined;
51
+ } | undefined;
52
+ uuid?: string | null | undefined;
53
+ file_key?: string | undefined;
54
+ order_id?: string | null | undefined;
55
+ parent_id?: string | null | undefined;
56
+ reactions?: {
57
+ created_at?: string | undefined;
58
+ user?: {
59
+ id: string;
60
+ handle?: string | undefined;
61
+ img_url?: string | undefined;
62
+ } | undefined;
63
+ emoji?: string | undefined;
64
+ }[] | undefined;
65
+ client_meta?: unknown;
66
+ resolved_at?: string | null | undefined;
67
+ }[] | undefined;
68
+ }>;
69
+ getReactions: (ctx: import("..").FigmaContext, args: {
70
+ file_key: string;
71
+ comment_id: string;
72
+ cursor?: string | undefined;
73
+ }) => Promise<{
74
+ reactions?: {
75
+ created_at?: string | undefined;
76
+ user?: {
77
+ id: string;
78
+ handle?: string | undefined;
79
+ img_url?: string | undefined;
80
+ } | undefined;
81
+ emoji?: string | undefined;
82
+ }[] | undefined;
83
+ pagination?: {
84
+ cursor?: string | undefined;
85
+ } | undefined;
86
+ }>;
87
+ addReaction: (ctx: import("..").FigmaContext, args: {
88
+ emoji: string;
89
+ file_key: string;
90
+ comment_id: string;
91
+ }) => Promise<{
92
+ status?: number | undefined;
93
+ error?: boolean | undefined;
94
+ }>;
95
+ deleteReaction: (ctx: import("..").FigmaContext, args: {
96
+ emoji: string;
97
+ file_key: string;
98
+ comment_id: string;
99
+ }) => Promise<{
100
+ status?: number | undefined;
101
+ error?: boolean | undefined;
102
+ }>;
103
+ };
104
+ export declare const Webhooks: {
105
+ create: (ctx: import("..").FigmaContext, args: {
106
+ event_type: string;
107
+ endpoint: string;
108
+ passcode: string;
109
+ status?: "ACTIVE" | "PAUSED" | undefined;
110
+ description?: string | undefined;
111
+ context?: string | undefined;
112
+ team_id?: string | undefined;
113
+ context_id?: string | undefined;
114
+ }) => Promise<{
115
+ id: string;
116
+ status?: "ACTIVE" | "PAUSED" | undefined;
117
+ event_type?: string | undefined;
118
+ endpoint?: string | undefined;
119
+ client_id?: string | null | undefined;
120
+ description?: string | null | undefined;
121
+ context?: "team" | "project" | "file" | null | undefined;
122
+ team_id?: string | null | undefined;
123
+ passcode?: string | undefined;
124
+ context_id?: string | null | undefined;
125
+ }>;
126
+ delete: (ctx: import("..").FigmaContext, args: {
127
+ webhook_id: string;
128
+ }) => Promise<{
129
+ id?: string | undefined;
130
+ status?: "ACTIVE" | "PAUSED" | undefined;
131
+ event_type?: string | undefined;
132
+ endpoint?: string | undefined;
133
+ client_id?: string | null | undefined;
134
+ description?: string | null | undefined;
135
+ context?: "team" | "project" | "file" | null | undefined;
136
+ team_id?: string | null | undefined;
137
+ passcode?: string | undefined;
138
+ context_id?: string | null | undefined;
139
+ }>;
140
+ get: (ctx: import("..").FigmaContext, args: {
141
+ webhook_id: string;
142
+ }) => Promise<{
143
+ id: string;
144
+ status?: "ACTIVE" | "PAUSED" | undefined;
145
+ event_type?: string | undefined;
146
+ endpoint?: string | undefined;
147
+ client_id?: string | null | undefined;
148
+ description?: string | null | undefined;
149
+ context?: "team" | "project" | "file" | null | undefined;
150
+ team_id?: string | null | undefined;
151
+ passcode?: string | undefined;
152
+ context_id?: string | null | undefined;
153
+ }>;
154
+ list: (ctx: import("..").FigmaContext, args: {
155
+ context?: string | undefined;
156
+ context_id?: string | undefined;
157
+ }) => Promise<{
158
+ webhooks?: {
159
+ id: string;
160
+ status?: "ACTIVE" | "PAUSED" | undefined;
161
+ event_type?: string | undefined;
162
+ endpoint?: string | undefined;
163
+ client_id?: string | null | undefined;
164
+ description?: string | null | undefined;
165
+ context?: "team" | "project" | "file" | null | undefined;
166
+ team_id?: string | null | undefined;
167
+ passcode?: string | undefined;
168
+ context_id?: string | null | undefined;
169
+ }[] | undefined;
170
+ }>;
171
+ getRequests: (ctx: import("..").FigmaContext, args: {
172
+ webhook_id: string;
173
+ }) => Promise<{
174
+ requests?: {
175
+ id: string;
176
+ webhook_id: string;
177
+ created_at?: string | undefined;
178
+ status?: string | undefined;
179
+ error?: import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough"> | undefined;
180
+ }[] | undefined;
181
+ }>;
182
+ update: (ctx: import("..").FigmaContext, args: {
183
+ webhook_id: string;
184
+ status?: "ACTIVE" | "PAUSED" | undefined;
185
+ event_type?: string | undefined;
186
+ endpoint?: string | undefined;
187
+ description?: string | undefined;
188
+ passcode?: string | undefined;
189
+ }) => Promise<{
190
+ id: string;
191
+ status?: "ACTIVE" | "PAUSED" | undefined;
192
+ event_type?: string | undefined;
193
+ endpoint?: string | undefined;
194
+ client_id?: string | null | undefined;
195
+ description?: string | null | undefined;
196
+ context?: "team" | "project" | "file" | null | undefined;
197
+ team_id?: string | null | undefined;
198
+ passcode?: string | undefined;
199
+ context_id?: string | null | undefined;
200
+ }>;
201
+ };
202
+ export declare const DevResources: {
203
+ create: (ctx: import("..").FigmaContext, args: {
204
+ dev_resources: {
205
+ name: string;
206
+ file_key: string;
207
+ node_id: string;
208
+ url: string;
209
+ }[];
210
+ }) => Promise<{
211
+ links_created?: {
212
+ id: string;
213
+ name: string;
214
+ file_key: string;
215
+ node_id: string;
216
+ url: string;
217
+ }[] | undefined;
218
+ errors?: {
219
+ error: string;
220
+ file_key?: string | undefined;
221
+ node_id?: string | undefined;
222
+ }[] | undefined;
223
+ }>;
224
+ delete: (ctx: import("..").FigmaContext, args: {
225
+ file_key: string;
226
+ dev_resource_id: string;
227
+ }) => Promise<{}>;
228
+ get: (ctx: import("..").FigmaContext, args: {
229
+ file_key: string;
230
+ node_ids?: string | undefined;
231
+ }) => Promise<{
232
+ dev_resources?: {
233
+ id: string;
234
+ name: string;
235
+ file_key: string;
236
+ node_id: string;
237
+ url: string;
238
+ }[] | undefined;
239
+ }>;
240
+ update: (ctx: import("..").FigmaContext, args: {
241
+ dev_resources: {
242
+ id: string;
243
+ name?: string | undefined;
244
+ url?: string | undefined;
245
+ }[];
246
+ }) => Promise<{
247
+ errors?: {
248
+ error: string;
249
+ dev_resource_id?: string | undefined;
250
+ }[] | undefined;
251
+ links_updated?: {
252
+ id: string;
253
+ name?: string | undefined;
254
+ url?: string | undefined;
255
+ }[] | undefined;
256
+ }>;
257
+ };
258
+ export declare const Variables: {
259
+ createModifyDelete: (ctx: import("..").FigmaContext, args: {
260
+ file_key: string;
261
+ variables?: unknown[] | undefined;
262
+ variableModes?: unknown[] | undefined;
263
+ variableModeValues?: unknown[] | undefined;
264
+ variableCollections?: unknown[] | undefined;
265
+ }) => Promise<{
266
+ status?: number | undefined;
267
+ error?: boolean | undefined;
268
+ meta?: {
269
+ tempIdToRealId?: Record<string, string> | undefined;
270
+ } | undefined;
271
+ }>;
272
+ getLocal: (ctx: import("..").FigmaContext, args: {
273
+ file_key: string;
274
+ }) => Promise<{
275
+ status?: number | undefined;
276
+ error?: boolean | undefined;
277
+ meta?: {
278
+ variables?: Record<string, unknown> | undefined;
279
+ variableCollections?: Record<string, unknown> | undefined;
280
+ } | undefined;
281
+ }>;
282
+ getPublished: (ctx: import("..").FigmaContext, args: {
283
+ file_key: string;
284
+ }) => Promise<{
285
+ status?: number | undefined;
286
+ error?: boolean | undefined;
287
+ meta?: {
288
+ variables?: Record<string, unknown> | undefined;
289
+ variableCollections?: Record<string, unknown> | undefined;
290
+ } | undefined;
291
+ }>;
292
+ };
293
+ export declare const Components: {
294
+ get: (ctx: import("..").FigmaContext, args: {
295
+ key: string;
296
+ }) => Promise<{
297
+ status?: number | undefined;
298
+ meta?: {
299
+ component?: {
300
+ key: string;
301
+ created_at?: string | undefined;
302
+ updated_at?: string | undefined;
303
+ name?: string | undefined;
304
+ description?: string | undefined;
305
+ user?: {
306
+ id: string;
307
+ handle?: string | undefined;
308
+ img_url?: string | undefined;
309
+ } | undefined;
310
+ file_key?: string | undefined;
311
+ node_id?: string | undefined;
312
+ thumbnail_url?: string | undefined;
313
+ containing_frame?: {
314
+ name?: string | undefined;
315
+ node_id?: string | undefined;
316
+ } | undefined;
317
+ } | undefined;
318
+ } | undefined;
319
+ }>;
320
+ getComponentSet: (ctx: import("..").FigmaContext, args: {
321
+ key: string;
322
+ }) => Promise<{
323
+ status?: number | undefined;
324
+ meta?: {
325
+ component_set?: {
326
+ key: string;
327
+ name?: string | undefined;
328
+ description?: string | undefined;
329
+ thumbnail_url?: string | undefined;
330
+ } | undefined;
331
+ } | undefined;
332
+ }>;
333
+ getForFile: (ctx: import("..").FigmaContext, args: {
334
+ file_key: string;
335
+ }) => Promise<{
336
+ status?: number | undefined;
337
+ meta?: {
338
+ components?: {
339
+ key: string;
340
+ created_at?: string | undefined;
341
+ updated_at?: string | undefined;
342
+ name?: string | undefined;
343
+ description?: string | undefined;
344
+ user?: {
345
+ id: string;
346
+ handle?: string | undefined;
347
+ img_url?: string | undefined;
348
+ } | undefined;
349
+ file_key?: string | undefined;
350
+ node_id?: string | undefined;
351
+ thumbnail_url?: string | undefined;
352
+ containing_frame?: {
353
+ name?: string | undefined;
354
+ node_id?: string | undefined;
355
+ } | undefined;
356
+ }[] | undefined;
357
+ } | undefined;
358
+ }>;
359
+ getComponentSetsForFile: (ctx: import("..").FigmaContext, args: {
360
+ file_key: string;
361
+ }) => Promise<{
362
+ meta?: {
363
+ component_sets?: {
364
+ key: string;
365
+ name?: string | undefined;
366
+ }[] | undefined;
367
+ } | undefined;
368
+ }>;
369
+ getForTeam: (ctx: import("..").FigmaContext, args: {
370
+ team_id: string;
371
+ before?: number | undefined;
372
+ after?: number | undefined;
373
+ page_size?: number | undefined;
374
+ }) => Promise<{
375
+ cursor?: string | undefined;
376
+ meta?: {
377
+ components?: {
378
+ key: string;
379
+ created_at?: string | undefined;
380
+ updated_at?: string | undefined;
381
+ name?: string | undefined;
382
+ description?: string | undefined;
383
+ user?: {
384
+ id: string;
385
+ handle?: string | undefined;
386
+ img_url?: string | undefined;
387
+ } | undefined;
388
+ file_key?: string | undefined;
389
+ node_id?: string | undefined;
390
+ thumbnail_url?: string | undefined;
391
+ containing_frame?: {
392
+ name?: string | undefined;
393
+ node_id?: string | undefined;
394
+ } | undefined;
395
+ }[] | undefined;
396
+ } | undefined;
397
+ }>;
398
+ getComponentSetsForTeam: (ctx: import("..").FigmaContext, args: {
399
+ team_id: string;
400
+ before?: number | undefined;
401
+ after?: number | undefined;
402
+ page_size?: number | undefined;
403
+ }) => Promise<{
404
+ cursor?: string | undefined;
405
+ meta?: {
406
+ component_sets?: {
407
+ key: string;
408
+ name?: string | undefined;
409
+ }[] | undefined;
410
+ } | undefined;
411
+ }>;
412
+ };
413
+ export declare const Files: {
414
+ getJSON: (ctx: import("..").FigmaContext, args: {
415
+ file_key: string;
416
+ version?: string | undefined;
417
+ ids?: string | undefined;
418
+ depth?: number | undefined;
419
+ geometry?: string | undefined;
420
+ plugin_data?: string | undefined;
421
+ branch_data?: boolean | undefined;
422
+ simplify?: boolean | undefined;
423
+ include_raw?: boolean | undefined;
424
+ }) => Promise<{
425
+ name?: string | undefined;
426
+ version?: string | undefined;
427
+ components?: Record<string, unknown> | undefined;
428
+ role?: string | undefined;
429
+ lastModified?: string | undefined;
430
+ editorType?: string | undefined;
431
+ thumbnailUrl?: string | undefined;
432
+ document?: unknown;
433
+ styles?: Record<string, unknown> | undefined;
434
+ }>;
435
+ getMetadata: (ctx: import("..").FigmaContext, args: {
436
+ file_key: string;
437
+ }) => Promise<{
438
+ name?: string | undefined;
439
+ version?: string | undefined;
440
+ thumbnail_url?: string | undefined;
441
+ role?: string | undefined;
442
+ editorType?: string | undefined;
443
+ last_modified?: string | undefined;
444
+ }>;
445
+ getNodes: (ctx: import("..").FigmaContext, args: {
446
+ file_key: string;
447
+ ids: string;
448
+ version?: string | undefined;
449
+ depth?: number | undefined;
450
+ geometry?: string | undefined;
451
+ plugin_data?: string | undefined;
452
+ }) => Promise<{
453
+ name?: string | undefined;
454
+ nodes?: Record<string, unknown> | undefined;
455
+ }>;
456
+ getStyles: (ctx: import("..").FigmaContext, args: {
457
+ file_key: string;
458
+ }) => Promise<{
459
+ meta?: {
460
+ styles?: {
461
+ key: string;
462
+ name?: string | undefined;
463
+ description?: string | undefined;
464
+ file_key?: string | undefined;
465
+ node_id?: string | undefined;
466
+ style_type?: string | undefined;
467
+ }[] | undefined;
468
+ } | undefined;
469
+ }>;
470
+ getImageFills: (ctx: import("..").FigmaContext, args: {
471
+ file_key: string;
472
+ }) => Promise<{
473
+ error?: boolean | undefined;
474
+ meta?: {
475
+ images?: Record<string, string> | undefined;
476
+ } | undefined;
477
+ }>;
478
+ getVersions: (ctx: import("..").FigmaContext, args: {
479
+ file_key: string;
480
+ before?: number | undefined;
481
+ after?: number | undefined;
482
+ page_size?: number | undefined;
483
+ }) => Promise<{
484
+ pagination?: {
485
+ cursor?: string | undefined;
486
+ } | undefined;
487
+ versions?: {
488
+ id: string;
489
+ created_at?: string | undefined;
490
+ description?: string | null | undefined;
491
+ user?: {
492
+ id: string;
493
+ handle?: string | undefined;
494
+ img_url?: string | undefined;
495
+ } | undefined;
496
+ label?: string | null | undefined;
497
+ }[] | undefined;
498
+ }>;
499
+ renderImages: (ctx: import("..").FigmaContext, args: {
500
+ file_key: string;
501
+ ids: string;
502
+ version?: string | undefined;
503
+ scale?: number | undefined;
504
+ format?: "jpg" | "png" | "svg" | "pdf" | undefined;
505
+ contents_only?: boolean | undefined;
506
+ svg_include_id?: boolean | undefined;
507
+ svg_outline_text?: boolean | undefined;
508
+ svg_include_node_id?: boolean | undefined;
509
+ svg_simplify_stroke?: boolean | undefined;
510
+ use_absolute_bounds?: boolean | undefined;
511
+ }) => Promise<{
512
+ images?: Record<string, string | null> | undefined;
513
+ err?: string | null | undefined;
514
+ }>;
515
+ getProjectFiles: (ctx: import("..").FigmaContext, args: {
516
+ project_id: string;
517
+ branch_data?: boolean | undefined;
518
+ }) => Promise<{
519
+ name?: string | undefined;
520
+ files?: {
521
+ key: string;
522
+ name?: string | undefined;
523
+ thumbnail_url?: string | null | undefined;
524
+ last_modified?: string | undefined;
525
+ }[] | undefined;
526
+ }>;
527
+ };
528
+ export declare const Styles: {
529
+ get: (ctx: import("..").FigmaContext, args: {
530
+ key: string;
531
+ }) => Promise<{
532
+ meta?: {
533
+ style?: {
534
+ key: string;
535
+ name?: string | undefined;
536
+ description?: string | undefined;
537
+ file_key?: string | undefined;
538
+ node_id?: string | undefined;
539
+ style_type?: string | undefined;
540
+ } | undefined;
541
+ } | undefined;
542
+ }>;
543
+ getForTeam: (ctx: import("..").FigmaContext, args: {
544
+ team_id: string;
545
+ before?: number | undefined;
546
+ after?: number | undefined;
547
+ page_size?: number | undefined;
548
+ }) => Promise<{
549
+ meta?: {
550
+ styles?: {
551
+ key: string;
552
+ name?: string | undefined;
553
+ style_type?: string | undefined;
554
+ }[] | undefined;
555
+ } | undefined;
556
+ }>;
557
+ };
558
+ export declare const Projects: {
559
+ getTeamProjects: (ctx: import("..").FigmaContext, args: {
560
+ team_id: string;
561
+ }) => Promise<{
562
+ name?: string | undefined;
563
+ projects?: {
564
+ id: string;
565
+ name?: string | undefined;
566
+ }[] | undefined;
567
+ }>;
568
+ };
569
+ export declare const Users: {
570
+ getCurrent: (ctx: import("..").FigmaContext, args: {}) => Promise<{
571
+ id: string;
572
+ handle?: string | undefined;
573
+ img_url?: string | undefined;
574
+ email?: string | undefined;
575
+ }>;
576
+ };
577
+ export declare const LibraryAnalytics: {
578
+ componentActions: (ctx: import("..").FigmaContext, args: {
579
+ file_key: string;
580
+ cursor?: string | undefined;
581
+ start_date?: string | undefined;
582
+ end_date?: string | undefined;
583
+ group_by?: string | undefined;
584
+ }) => Promise<{
585
+ cursor?: string | undefined;
586
+ rows?: unknown[] | undefined;
587
+ next_page?: boolean | undefined;
588
+ }>;
589
+ componentUsages: (ctx: import("..").FigmaContext, args: {
590
+ file_key: string;
591
+ cursor?: string | undefined;
592
+ group_by?: string | undefined;
593
+ }) => Promise<{
594
+ cursor?: string | undefined;
595
+ rows?: unknown[] | undefined;
596
+ next_page?: boolean | undefined;
597
+ }>;
598
+ styleActions: (ctx: import("..").FigmaContext, args: {
599
+ file_key: string;
600
+ cursor?: string | undefined;
601
+ start_date?: string | undefined;
602
+ end_date?: string | undefined;
603
+ group_by?: string | undefined;
604
+ }) => Promise<{
605
+ cursor?: string | undefined;
606
+ rows?: unknown[] | undefined;
607
+ next_page?: boolean | undefined;
608
+ }>;
609
+ styleUsages: (ctx: import("..").FigmaContext, args: {
610
+ file_key: string;
611
+ cursor?: string | undefined;
612
+ group_by?: string | undefined;
613
+ }) => Promise<{
614
+ cursor?: string | undefined;
615
+ rows?: unknown[] | undefined;
616
+ next_page?: boolean | undefined;
617
+ }>;
618
+ variableActions: (ctx: import("..").FigmaContext, args: {
619
+ file_key: string;
620
+ cursor?: string | undefined;
621
+ start_date?: string | undefined;
622
+ end_date?: string | undefined;
623
+ group_by?: string | undefined;
624
+ }) => Promise<{
625
+ cursor?: string | undefined;
626
+ rows?: unknown[] | undefined;
627
+ next_page?: boolean | undefined;
628
+ }>;
629
+ variableUsages: (ctx: import("..").FigmaContext, args: {
630
+ file_key: string;
631
+ cursor?: string | undefined;
632
+ group_by?: string | undefined;
633
+ }) => Promise<{
634
+ cursor?: string | undefined;
635
+ rows?: unknown[] | undefined;
636
+ next_page?: boolean | undefined;
637
+ }>;
638
+ };
639
+ export declare const ActivityLogs: {
640
+ list: (ctx: import("..").FigmaContext, args: {
641
+ limit?: number | undefined;
642
+ start_time?: number | undefined;
643
+ end_time?: number | undefined;
644
+ order?: string | undefined;
645
+ events?: string | undefined;
646
+ }) => Promise<{
647
+ cursor?: string | undefined;
648
+ next_page?: boolean | undefined;
649
+ activity_logs?: unknown[] | undefined;
650
+ }>;
651
+ };
652
+ export declare const Payments: {
653
+ get: (ctx: import("..").FigmaContext, args: {
654
+ user_id?: string | undefined;
655
+ plugin_id?: string | undefined;
656
+ widget_id?: string | undefined;
657
+ community_file_id?: string | undefined;
658
+ plugin_payment_token?: string | undefined;
659
+ }) => Promise<{
660
+ status?: number | undefined;
661
+ meta?: {
662
+ payment_information?: unknown;
663
+ } | undefined;
664
+ }>;
665
+ };
666
+ export declare const DesignTools: {
667
+ discoverResources: (ctx: import("..").FigmaContext, args: {
668
+ file_key?: string | undefined;
669
+ team_id?: string | undefined;
670
+ project_id?: string | undefined;
671
+ figma_url?: string | undefined;
672
+ max_depth?: number | undefined;
673
+ }) => Promise<{
674
+ teams?: unknown[] | undefined;
675
+ files?: unknown[] | undefined;
676
+ projects?: unknown[] | undefined;
677
+ }>;
678
+ extractDesignTokens: (ctx: import("..").FigmaContext, args: {
679
+ file_key: string;
680
+ include_variables?: boolean | undefined;
681
+ include_local_styles?: boolean | undefined;
682
+ extract_from_nodes?: string | undefined;
683
+ }) => Promise<{
684
+ tokens?: Record<string, unknown> | undefined;
685
+ }>;
686
+ extractPrototypeInteractions: (ctx: import("..").FigmaContext, args: {
687
+ file_key: string;
688
+ analyze_components?: boolean | undefined;
689
+ include_animations?: boolean | undefined;
690
+ }) => Promise<{
691
+ interactions?: unknown[] | undefined;
692
+ flows?: unknown[] | undefined;
693
+ }>;
694
+ downloadImages: (ctx: import("..").FigmaContext, args: {
695
+ file_key: string;
696
+ images: {
697
+ node_id: string;
698
+ }[];
699
+ scale?: number | undefined;
700
+ svg_include_id?: boolean | undefined;
701
+ svg_outline_text?: boolean | undefined;
702
+ svg_simplify_stroke?: boolean | undefined;
703
+ }) => Promise<{
704
+ images?: Record<string, string | null> | undefined;
705
+ }>;
706
+ designTokensToTailwind: (ctx: import("..").FigmaContext, args: {
707
+ tokens: Record<string, unknown>;
708
+ prefix?: string | undefined;
709
+ config_format?: string | undefined;
710
+ include_font_imports?: boolean | undefined;
711
+ }) => Promise<{
712
+ config?: string | undefined;
713
+ css?: string | undefined;
714
+ }>;
715
+ };
716
+ export * from './types';
717
+ //# sourceMappingURL=index.d.ts.map