@adspireai/adspire-node-sdk 1.0.97 → 1.0.99

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.
@@ -30,6 +30,24 @@ export declare const PostType: {
30
30
  readonly ARTICLE: "article";
31
31
  readonly DESIGN: "design";
32
32
  };
33
+ export type UserType = 'internal' | 'external';
34
+ export declare const UserType: {
35
+ readonly INTERNAL: "internal";
36
+ readonly EXTERNAL: "external";
37
+ };
38
+ export type WhiteboardPreviewPublicUserRole = 'viewer' | 'editor' | 'admin';
39
+ export declare const WhiteboardPreviewPublicUserRole: {
40
+ readonly VIEWER: "viewer";
41
+ readonly EDITOR: "editor";
42
+ readonly ADMIN: "admin";
43
+ };
44
+ export type WhiteboardPreviewStatus = 'pending' | 'approved' | 'rejected' | 'discarded';
45
+ export declare const WhiteboardPreviewStatus: {
46
+ readonly PENDING: "pending";
47
+ readonly APPROVED: "approved";
48
+ readonly REJECTED: "rejected";
49
+ readonly DISCARDED: "discarded";
50
+ };
33
51
  export type AiCreditUsage = {
34
52
  id?: number;
35
53
  brand_id: string;
@@ -85,20 +103,18 @@ export type Brands = {
85
103
  };
86
104
  export type Campaigns = {
87
105
  id?: string;
88
- brand_id: string;
89
- workspace_id: string;
106
+ brand?: Brands;
90
107
  title: string;
91
- description?: string;
92
108
  start_date?: string;
93
109
  end_date?: string;
94
- status?: CampaignStatus;
110
+ status?: string | null;
111
+ description?: string | null;
95
112
  whiteboard?: Whiteboards;
96
- created_at?: string;
97
- updated_at?: string;
98
113
  };
99
114
  export type Comments = {
100
115
  id?: string;
101
- user?: Users;
116
+ commenter?: Users | WhiteboardPreviewPublicUser;
117
+ commenter_source?: UserType;
102
118
  /**
103
119
  * ID of the parent resource (post, campaign, etc.)
104
120
  */
@@ -108,9 +124,6 @@ export type Comments = {
108
124
  */
109
125
  parent_id?: string | null;
110
126
  content: string;
111
- is_resolved?: boolean;
112
- resolved_by?: string | null;
113
- resolved_at?: string | null;
114
127
  /**
115
128
  * Indicates if comment was edited
116
129
  */
@@ -242,7 +255,6 @@ export type WebhookLogs = {
242
255
  };
243
256
  export type Whiteboards = {
244
257
  id?: string;
245
- brand_id?: string | null;
246
258
  campaign_id?: string | null;
247
259
  workspace_id: string;
248
260
  title: string;
@@ -282,18 +294,50 @@ export type WhiteboardPosts = {
282
294
  ad_targeting?: {
283
295
  [key: string]: unknown;
284
296
  } | null;
285
- order?: number;
286
297
  created_at?: string;
287
298
  updated_at?: string;
288
299
  };
289
300
  export type WhiteboardPreviews = {
301
+ id?: string;
302
+ status?: WhiteboardPreviewStatus;
303
+ version?: number;
304
+ created_by?: Users;
305
+ created_at?: string;
306
+ external_users?: Array<WhiteboardPreviewPublicUser>;
307
+ };
308
+ export type WhiteboardPreviewsWithPosts = {
290
309
  id?: string;
291
310
  title: string;
292
- whiteboard_id: string;
293
- image_url?: string;
294
- generated_at?: string;
311
+ status?: WhiteboardPreviewStatus;
312
+ feedback?: string | null;
313
+ campaign?: Campaigns | null;
314
+ created_by?: Users;
295
315
  created_at?: string;
296
- updated_at?: string;
316
+ reviewed_by?: Users | null;
317
+ reviewed_at?: string | null;
318
+ posts?: Array<WhiteboardPreviewPosts>;
319
+ };
320
+ export type WhiteboardPreviewPosts = {
321
+ id?: string;
322
+ whiteboard_preview_id?: string;
323
+ type?: PostType | null;
324
+ platform?: PostPlatform | null;
325
+ content?: string;
326
+ title?: string | null;
327
+ image_url?: string | null;
328
+ post_date?: string | null;
329
+ keywords?: Array<string> | null;
330
+ notes?: string | null;
331
+ tags?: Array<string> | null;
332
+ approval?: boolean;
333
+ audience?: Array<string> | null;
334
+ };
335
+ export type WhiteboardPreviewPublicUser = {
336
+ id?: string;
337
+ name?: string;
338
+ email?: string;
339
+ role?: WhiteboardPreviewPublicUserRole;
340
+ last_visit_at?: string;
297
341
  };
298
342
  export type Workspaces = {
299
343
  id?: string;
@@ -1127,7 +1171,14 @@ export type ListCampaignsResponses = {
1127
1171
  };
1128
1172
  export type ListCampaignsResponse = ListCampaignsResponses[keyof ListCampaignsResponses];
1129
1173
  export type CreateCampaignData = {
1130
- body: Campaigns;
1174
+ body: {
1175
+ brand_id: string;
1176
+ title: string;
1177
+ description?: string | null;
1178
+ start_date?: string | null;
1179
+ end_date?: string | null;
1180
+ status?: CampaignStatus | null;
1181
+ };
1131
1182
  path?: never;
1132
1183
  query?: never;
1133
1184
  url: '/api/campaigns';
@@ -1212,7 +1263,14 @@ export type GetCampaignResponses = {
1212
1263
  };
1213
1264
  export type GetCampaignResponse = GetCampaignResponses[keyof GetCampaignResponses];
1214
1265
  export type UpdateCampaignData = {
1215
- body: Campaigns;
1266
+ body: {
1267
+ brand_id: string;
1268
+ title: string;
1269
+ description?: string | null;
1270
+ start_date?: string | null;
1271
+ end_date?: string | null;
1272
+ status?: CampaignStatus | null;
1273
+ };
1216
1274
  path: {
1217
1275
  /**
1218
1276
  * Campaign ID
@@ -1457,6 +1515,273 @@ export type UpdateConnectorInstallationResponses = {
1457
1515
  */
1458
1516
  200: unknown;
1459
1517
  };
1518
+ export type GetExternalCurrentUserData = {
1519
+ body?: never;
1520
+ path?: never;
1521
+ query?: never;
1522
+ url: '/api/external/me';
1523
+ };
1524
+ export type GetExternalCurrentUserErrors = {
1525
+ /**
1526
+ * Invalid or missing token
1527
+ */
1528
+ 403: unknown;
1529
+ };
1530
+ export type GetExternalCurrentUserResponses = {
1531
+ /**
1532
+ * Current external user
1533
+ */
1534
+ 200: WhiteboardPreviewPublicUser;
1535
+ };
1536
+ export type GetExternalCurrentUserResponse = GetExternalCurrentUserResponses[keyof GetExternalCurrentUserResponses];
1537
+ export type ShowExternalWhiteboardPreviewData = {
1538
+ body?: never;
1539
+ path: {
1540
+ /**
1541
+ * Whiteboard Preview ID
1542
+ */
1543
+ whiteboard_preview: string;
1544
+ };
1545
+ query?: never;
1546
+ url: '/api/whiteboard-previews/external/{whiteboard_preview}';
1547
+ };
1548
+ export type ShowExternalWhiteboardPreviewErrors = {
1549
+ /**
1550
+ * Not found
1551
+ */
1552
+ 404: unknown;
1553
+ };
1554
+ export type ShowExternalWhiteboardPreviewResponses = {
1555
+ /**
1556
+ * Whiteboard preview with posts
1557
+ */
1558
+ 200: WhiteboardPreviewsWithPosts;
1559
+ };
1560
+ export type ShowExternalWhiteboardPreviewResponse = ShowExternalWhiteboardPreviewResponses[keyof ShowExternalWhiteboardPreviewResponses];
1561
+ export type UpdateExternalWhiteboardPreviewData = {
1562
+ body: {
1563
+ status: 'approved' | 'rejected';
1564
+ feedback?: string | null;
1565
+ };
1566
+ path: {
1567
+ /**
1568
+ * Whiteboard Preview ID
1569
+ */
1570
+ whiteboard_preview: string;
1571
+ };
1572
+ query?: never;
1573
+ url: '/api/whiteboard-previews/external/{whiteboard_preview}';
1574
+ };
1575
+ export type UpdateExternalWhiteboardPreviewErrors = {
1576
+ /**
1577
+ * Not found
1578
+ */
1579
+ 404: unknown;
1580
+ /**
1581
+ * Validation error or whiteboard preview is discarded
1582
+ */
1583
+ 422: {
1584
+ error?: string;
1585
+ };
1586
+ };
1587
+ export type UpdateExternalWhiteboardPreviewError = UpdateExternalWhiteboardPreviewErrors[keyof UpdateExternalWhiteboardPreviewErrors];
1588
+ export type UpdateExternalWhiteboardPreviewResponses = {
1589
+ /**
1590
+ * Whiteboard preview status updated
1591
+ */
1592
+ 200: WhiteboardPreviewsWithPosts;
1593
+ };
1594
+ export type UpdateExternalWhiteboardPreviewResponse = UpdateExternalWhiteboardPreviewResponses[keyof UpdateExternalWhiteboardPreviewResponses];
1595
+ export type ListWhiteboardPreviewCommentsData = {
1596
+ body?: never;
1597
+ path: {
1598
+ /**
1599
+ * Whiteboard Preview ID
1600
+ */
1601
+ whiteboard_preview: string;
1602
+ };
1603
+ query?: {
1604
+ /**
1605
+ * Filter by commenter source
1606
+ */
1607
+ commenter_source?: 'all' | 'internal' | 'external' | 'mine';
1608
+ };
1609
+ url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments';
1610
+ };
1611
+ export type ListWhiteboardPreviewCommentsErrors = {
1612
+ /**
1613
+ * Forbidden
1614
+ */
1615
+ 403: unknown;
1616
+ /**
1617
+ * Not found
1618
+ */
1619
+ 404: unknown;
1620
+ };
1621
+ export type ListWhiteboardPreviewCommentsResponses = {
1622
+ /**
1623
+ * List of comments with commentable_id for grouping
1624
+ */
1625
+ 200: Array<Comments>;
1626
+ };
1627
+ export type ListWhiteboardPreviewCommentsResponse = ListWhiteboardPreviewCommentsResponses[keyof ListWhiteboardPreviewCommentsResponses];
1628
+ export type ListWhiteboardPreviewPostCommentsData = {
1629
+ body?: never;
1630
+ path: {
1631
+ /**
1632
+ * Whiteboard Preview ID
1633
+ */
1634
+ whiteboard_preview: string;
1635
+ /**
1636
+ * Whiteboard Preview Post ID
1637
+ */
1638
+ whiteboard_preview_post: string;
1639
+ };
1640
+ query?: {
1641
+ /**
1642
+ * Filter comments by commenter source
1643
+ */
1644
+ commenter_source?: 'all' | 'internal' | 'external' | 'mine';
1645
+ };
1646
+ url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments';
1647
+ };
1648
+ export type ListWhiteboardPreviewPostCommentsErrors = {
1649
+ /**
1650
+ * Forbidden - No access to this preview
1651
+ */
1652
+ 403: unknown;
1653
+ /**
1654
+ * Post not found for this preview
1655
+ */
1656
+ 404: unknown;
1657
+ };
1658
+ export type ListWhiteboardPreviewPostCommentsResponses = {
1659
+ /**
1660
+ * List of comments
1661
+ */
1662
+ 200: Array<Comments>;
1663
+ };
1664
+ export type ListWhiteboardPreviewPostCommentsResponse = ListWhiteboardPreviewPostCommentsResponses[keyof ListWhiteboardPreviewPostCommentsResponses];
1665
+ export type CreateWhiteboardPreviewPostCommentData = {
1666
+ body: {
1667
+ content: string;
1668
+ /**
1669
+ * Parent comment ID for replies
1670
+ */
1671
+ parent_id?: string | null;
1672
+ };
1673
+ path: {
1674
+ /**
1675
+ * Whiteboard Preview ID
1676
+ */
1677
+ whiteboard_preview: string;
1678
+ /**
1679
+ * Whiteboard Preview Post ID
1680
+ */
1681
+ whiteboard_preview_post: string;
1682
+ };
1683
+ query?: never;
1684
+ url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments';
1685
+ };
1686
+ export type CreateWhiteboardPreviewPostCommentErrors = {
1687
+ /**
1688
+ * Forbidden - No access to this preview
1689
+ */
1690
+ 403: unknown;
1691
+ /**
1692
+ * Post not found for this preview
1693
+ */
1694
+ 404: unknown;
1695
+ /**
1696
+ * Validation error
1697
+ */
1698
+ 422: unknown;
1699
+ };
1700
+ export type CreateWhiteboardPreviewPostCommentResponses = {
1701
+ /**
1702
+ * Comment created
1703
+ */
1704
+ 201: Comments;
1705
+ };
1706
+ export type CreateWhiteboardPreviewPostCommentResponse = CreateWhiteboardPreviewPostCommentResponses[keyof CreateWhiteboardPreviewPostCommentResponses];
1707
+ export type DeleteWhiteboardPreviewPostCommentData = {
1708
+ body?: never;
1709
+ path: {
1710
+ /**
1711
+ * Whiteboard Preview ID
1712
+ */
1713
+ whiteboard_preview: string;
1714
+ /**
1715
+ * Whiteboard Preview Post ID
1716
+ */
1717
+ whiteboard_preview_post: string;
1718
+ /**
1719
+ * Comment ID
1720
+ */
1721
+ comment: string;
1722
+ };
1723
+ query?: never;
1724
+ url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments/{comment}';
1725
+ };
1726
+ export type DeleteWhiteboardPreviewPostCommentErrors = {
1727
+ /**
1728
+ * Forbidden - Can only delete own comments or no access to preview
1729
+ */
1730
+ 403: unknown;
1731
+ /**
1732
+ * Comment or post not found
1733
+ */
1734
+ 404: unknown;
1735
+ };
1736
+ export type DeleteWhiteboardPreviewPostCommentResponses = {
1737
+ /**
1738
+ * Comment deleted successfully
1739
+ */
1740
+ 200: Comments;
1741
+ };
1742
+ export type DeleteWhiteboardPreviewPostCommentResponse = DeleteWhiteboardPreviewPostCommentResponses[keyof DeleteWhiteboardPreviewPostCommentResponses];
1743
+ export type UpdateWhiteboardPreviewPostCommentData = {
1744
+ body: {
1745
+ content?: string;
1746
+ };
1747
+ path: {
1748
+ /**
1749
+ * Whiteboard Preview ID
1750
+ */
1751
+ whiteboard_preview: string;
1752
+ /**
1753
+ * Whiteboard Preview Post ID
1754
+ */
1755
+ whiteboard_preview_post: string;
1756
+ /**
1757
+ * Comment ID
1758
+ */
1759
+ comment: string;
1760
+ };
1761
+ query?: never;
1762
+ url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments/{comment}';
1763
+ };
1764
+ export type UpdateWhiteboardPreviewPostCommentErrors = {
1765
+ /**
1766
+ * Forbidden - Can only edit own comments or no access to preview
1767
+ */
1768
+ 403: unknown;
1769
+ /**
1770
+ * Comment or post not found
1771
+ */
1772
+ 404: unknown;
1773
+ /**
1774
+ * Validation error
1775
+ */
1776
+ 422: unknown;
1777
+ };
1778
+ export type UpdateWhiteboardPreviewPostCommentResponses = {
1779
+ /**
1780
+ * Comment updated
1781
+ */
1782
+ 200: Comments;
1783
+ };
1784
+ export type UpdateWhiteboardPreviewPostCommentResponse = UpdateWhiteboardPreviewPostCommentResponses[keyof UpdateWhiteboardPreviewPostCommentResponses];
1460
1785
  export type ListExternalUsersData = {
1461
1786
  body?: never;
1462
1787
  path?: never;
@@ -2129,10 +2454,6 @@ export type ListWhiteboardsData = {
2129
2454
  body?: never;
2130
2455
  path?: never;
2131
2456
  query?: {
2132
- /**
2133
- * Filter by brand ID
2134
- */
2135
- brand_id?: string;
2136
2457
  /**
2137
2458
  * Filter by campaign ID
2138
2459
  */
@@ -2154,7 +2475,15 @@ export type ListWhiteboardsResponses = {
2154
2475
  };
2155
2476
  export type ListWhiteboardsResponse = ListWhiteboardsResponses[keyof ListWhiteboardsResponses];
2156
2477
  export type CreateWhiteboardData = {
2157
- body: Whiteboards;
2478
+ body: {
2479
+ campaign_id?: string | null;
2480
+ workspace_id: string;
2481
+ title: string;
2482
+ start_date?: string | null;
2483
+ end_date?: string | null;
2484
+ team?: string | null;
2485
+ shared?: Array<string> | null;
2486
+ };
2158
2487
  path?: never;
2159
2488
  query?: never;
2160
2489
  url: '/api/whiteboards';
@@ -2221,7 +2550,15 @@ export type GetWhiteboardResponses = {
2221
2550
  };
2222
2551
  export type GetWhiteboardResponse = GetWhiteboardResponses[keyof GetWhiteboardResponses];
2223
2552
  export type UpdateWhiteboardData = {
2224
- body: Whiteboards;
2553
+ body: {
2554
+ campaign_id?: string | null;
2555
+ workspace_id?: string;
2556
+ title?: string;
2557
+ start_date?: string | null;
2558
+ end_date?: string | null;
2559
+ team?: string | null;
2560
+ shared?: Array<string> | null;
2561
+ };
2225
2562
  path: {
2226
2563
  /**
2227
2564
  * Whiteboard ID
@@ -2282,10 +2619,10 @@ export type ListWhiteboardPostCommentsData = {
2282
2619
  /**
2283
2620
  * Whiteboard Post ID
2284
2621
  */
2285
- whiteboardPost: string;
2622
+ whiteboard_post: string;
2286
2623
  };
2287
2624
  query?: never;
2288
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}/comments';
2625
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}/comments';
2289
2626
  };
2290
2627
  export type ListWhiteboardPostCommentsErrors = {
2291
2628
  /**
@@ -2320,10 +2657,10 @@ export type CreateWhiteboardPostCommentData = {
2320
2657
  /**
2321
2658
  * Whiteboard Post ID
2322
2659
  */
2323
- whiteboardPost: string;
2660
+ whiteboard_post: string;
2324
2661
  };
2325
2662
  query?: never;
2326
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}/comments';
2663
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}/comments';
2327
2664
  };
2328
2665
  export type CreateWhiteboardPostCommentErrors = {
2329
2666
  /**
@@ -2352,14 +2689,14 @@ export type DeleteWhiteboardPostCommentData = {
2352
2689
  /**
2353
2690
  * Whiteboard Post ID
2354
2691
  */
2355
- whiteboardPost: string;
2692
+ whiteboard_post: string;
2356
2693
  /**
2357
2694
  * Comment ID
2358
2695
  */
2359
2696
  comment: string;
2360
2697
  };
2361
2698
  query?: never;
2362
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}/comments/{comment}';
2699
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}/comments/{comment}';
2363
2700
  };
2364
2701
  export type DeleteWhiteboardPostCommentErrors = {
2365
2702
  /**
@@ -2388,14 +2725,14 @@ export type GetWhiteboardPostCommentData = {
2388
2725
  /**
2389
2726
  * Whiteboard Post ID
2390
2727
  */
2391
- whiteboardPost: string;
2728
+ whiteboard_post: string;
2392
2729
  /**
2393
2730
  * Comment ID
2394
2731
  */
2395
2732
  comment: string;
2396
2733
  };
2397
2734
  query?: never;
2398
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}/comments/{comment}';
2735
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}/comments/{comment}';
2399
2736
  };
2400
2737
  export type GetWhiteboardPostCommentErrors = {
2401
2738
  /**
@@ -2429,14 +2766,14 @@ export type UpdateWhiteboardPostCommentData = {
2429
2766
  /**
2430
2767
  * Whiteboard Post ID
2431
2768
  */
2432
- whiteboardPost: string;
2769
+ whiteboard_post: string;
2433
2770
  /**
2434
2771
  * Comment ID
2435
2772
  */
2436
2773
  comment: string;
2437
2774
  };
2438
2775
  query?: never;
2439
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}/comments/{comment}';
2776
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}/comments/{comment}';
2440
2777
  };
2441
2778
  export type UpdateWhiteboardPostCommentErrors = {
2442
2779
  /**
@@ -2489,7 +2826,29 @@ export type ListWhiteboardPostsResponses = {
2489
2826
  };
2490
2827
  export type ListWhiteboardPostsResponse = ListWhiteboardPostsResponses[keyof ListWhiteboardPostsResponses];
2491
2828
  export type CreateWhiteboardPostData = {
2492
- body: WhiteboardPosts;
2829
+ body: {
2830
+ type?: PostType | null;
2831
+ platform?: PostPlatform | null;
2832
+ content?: string | null;
2833
+ title?: string | null;
2834
+ image_url?: string | null;
2835
+ post_date?: string | null;
2836
+ keywords?: Array<string> | null;
2837
+ notes?: string | null;
2838
+ tags?: Array<string> | null;
2839
+ platform_metadata?: {
2840
+ [key: string]: unknown;
2841
+ } | null;
2842
+ status?: PostStatus | null;
2843
+ platform_ad_id?: string | null;
2844
+ ad_status?: string | null;
2845
+ ad_budget?: number | null;
2846
+ ad_objective?: string | null;
2847
+ ad_targeting?: {
2848
+ [key: string]: unknown;
2849
+ } | null;
2850
+ order?: number | null;
2851
+ };
2493
2852
  path: {
2494
2853
  /**
2495
2854
  * Whiteboard ID
@@ -2526,10 +2885,10 @@ export type DeleteWhiteboardPostData = {
2526
2885
  /**
2527
2886
  * Whiteboard Post ID
2528
2887
  */
2529
- whiteboardPost: string;
2888
+ whiteboard_post: string;
2530
2889
  };
2531
2890
  query?: never;
2532
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}';
2891
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}';
2533
2892
  };
2534
2893
  export type DeleteWhiteboardPostErrors = {
2535
2894
  /**
@@ -2558,10 +2917,10 @@ export type GetWhiteboardPostData = {
2558
2917
  /**
2559
2918
  * Whiteboard Post ID
2560
2919
  */
2561
- whiteboardPost: string;
2920
+ whiteboard_post: string;
2562
2921
  };
2563
2922
  query?: never;
2564
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}';
2923
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}';
2565
2924
  };
2566
2925
  export type GetWhiteboardPostErrors = {
2567
2926
  /**
@@ -2581,7 +2940,29 @@ export type GetWhiteboardPostResponses = {
2581
2940
  };
2582
2941
  export type GetWhiteboardPostResponse = GetWhiteboardPostResponses[keyof GetWhiteboardPostResponses];
2583
2942
  export type UpdateWhiteboardPostData = {
2584
- body: WhiteboardPosts;
2943
+ body: {
2944
+ type?: PostType | null;
2945
+ platform?: PostPlatform | null;
2946
+ content?: string | null;
2947
+ title?: string | null;
2948
+ image_url?: string | null;
2949
+ post_date?: string | null;
2950
+ keywords?: Array<string> | null;
2951
+ notes?: string | null;
2952
+ tags?: Array<string> | null;
2953
+ platform_metadata?: {
2954
+ [key: string]: unknown;
2955
+ } | null;
2956
+ status?: PostStatus | null;
2957
+ platform_ad_id?: string | null;
2958
+ ad_status?: string | null;
2959
+ ad_budget?: number | null;
2960
+ ad_objective?: string | null;
2961
+ ad_targeting?: {
2962
+ [key: string]: unknown;
2963
+ } | null;
2964
+ order?: number | null;
2965
+ };
2585
2966
  path: {
2586
2967
  /**
2587
2968
  * Whiteboard ID
@@ -2590,10 +2971,10 @@ export type UpdateWhiteboardPostData = {
2590
2971
  /**
2591
2972
  * Whiteboard Post ID
2592
2973
  */
2593
- whiteboardPost: string;
2974
+ whiteboard_post: string;
2594
2975
  };
2595
2976
  query?: never;
2596
- url: '/api/whiteboards/{whiteboard}/posts/{whiteboardPost}';
2977
+ url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}';
2597
2978
  };
2598
2979
  export type UpdateWhiteboardPostErrors = {
2599
2980
  /**
@@ -2642,9 +3023,7 @@ export type ReorderWhiteboardPostsResponses = {
2642
3023
  /**
2643
3024
  * Posts reordered successfully
2644
3025
  */
2645
- 200: {
2646
- message?: string;
2647
- };
3026
+ 200: Array<WhiteboardPosts>;
2648
3027
  };
2649
3028
  export type ReorderWhiteboardPostsResponse = ReorderWhiteboardPostsResponses[keyof ReorderWhiteboardPostsResponses];
2650
3029
  export type ListWhiteboardPreviewsData = {
@@ -2660,9 +3039,9 @@ export type ListWhiteboardPreviewsData = {
2660
3039
  */
2661
3040
  latest?: boolean;
2662
3041
  /**
2663
- * Filter by approval status
3042
+ * Filter by status
2664
3043
  */
2665
- approved?: boolean;
3044
+ status?: WhiteboardPreviewStatus;
2666
3045
  };
2667
3046
  url: '/api/whiteboard-previews';
2668
3047
  };
@@ -2680,7 +3059,14 @@ export type ListWhiteboardPreviewsResponses = {
2680
3059
  };
2681
3060
  export type ListWhiteboardPreviewsResponse = ListWhiteboardPreviewsResponses[keyof ListWhiteboardPreviewsResponses];
2682
3061
  export type CreateWhiteboardPreviewData = {
2683
- body: WhiteboardPreviews;
3062
+ body: {
3063
+ whiteboard_id: string;
3064
+ campaign_id?: string | null;
3065
+ title: string;
3066
+ start_date?: string | null;
3067
+ end_date?: string | null;
3068
+ feedback?: string | null;
3069
+ };
2684
3070
  path?: never;
2685
3071
  query?: never;
2686
3072
  url: '/api/whiteboard-previews';
@@ -2698,7 +3084,7 @@ export type CreateWhiteboardPreviewResponses = {
2698
3084
  201: WhiteboardPreviews;
2699
3085
  };
2700
3086
  export type CreateWhiteboardPreviewResponse = CreateWhiteboardPreviewResponses[keyof CreateWhiteboardPreviewResponses];
2701
- export type DeleteWhiteboardPreviewData = {
3087
+ export type DiscardPreviousWhiteboardPreviewsData = {
2702
3088
  body?: never;
2703
3089
  path: {
2704
3090
  /**
@@ -2707,69 +3093,113 @@ export type DeleteWhiteboardPreviewData = {
2707
3093
  id: string;
2708
3094
  };
2709
3095
  query?: never;
2710
- url: '/api/whiteboard-previews/{id}';
3096
+ url: '/api/whiteboard-previews/{id}/discard-previous';
2711
3097
  };
2712
- export type DeleteWhiteboardPreviewErrors = {
3098
+ export type DiscardPreviousWhiteboardPreviewsErrors = {
2713
3099
  /**
2714
- * Not found
3100
+ * Forbidden - User not authorized to access this whiteboard preview
3101
+ */
3102
+ 403: unknown;
3103
+ /**
3104
+ * Whiteboard preview not found
2715
3105
  */
2716
3106
  404: unknown;
3107
+ /**
3108
+ * No active workspace set
3109
+ */
3110
+ 422: unknown;
2717
3111
  };
2718
- export type DeleteWhiteboardPreviewResponses = {
3112
+ export type DiscardPreviousWhiteboardPreviewsResponses = {
2719
3113
  /**
2720
- * Whiteboard preview deleted
3114
+ * All previous versions discarded successfully
2721
3115
  */
2722
- 204: void;
3116
+ 200: {
3117
+ message?: string;
3118
+ };
2723
3119
  };
2724
- export type DeleteWhiteboardPreviewResponse = DeleteWhiteboardPreviewResponses[keyof DeleteWhiteboardPreviewResponses];
2725
- export type GetWhiteboardPreviewData = {
3120
+ export type DiscardPreviousWhiteboardPreviewsResponse = DiscardPreviousWhiteboardPreviewsResponses[keyof DiscardPreviousWhiteboardPreviewsResponses];
3121
+ export type RevokeWhiteboardPreviewExternalUserData = {
2726
3122
  body?: never;
2727
3123
  path: {
2728
3124
  /**
2729
3125
  * Whiteboard Preview ID
2730
3126
  */
2731
- id: string;
3127
+ whiteboard_preview: string;
3128
+ /**
3129
+ * External User ID
3130
+ */
3131
+ whiteboard_preview_public_user: string;
2732
3132
  };
2733
3133
  query?: never;
2734
- url: '/api/whiteboard-previews/{id}';
3134
+ url: '/api/whiteboard-previews/{whiteboard_preview}/external-users/{whiteboard_preview_public_user}';
2735
3135
  };
2736
- export type GetWhiteboardPreviewErrors = {
3136
+ export type RevokeWhiteboardPreviewExternalUserErrors = {
2737
3137
  /**
2738
3138
  * Not found
2739
3139
  */
2740
3140
  404: unknown;
2741
3141
  };
2742
- export type GetWhiteboardPreviewResponses = {
3142
+ export type RevokeWhiteboardPreviewExternalUserResponses = {
2743
3143
  /**
2744
- * Whiteboard preview details
3144
+ * External user access revoked
2745
3145
  */
2746
- 200: WhiteboardPreviews;
3146
+ 200: {
3147
+ success?: string;
3148
+ };
2747
3149
  };
2748
- export type GetWhiteboardPreviewResponse = GetWhiteboardPreviewResponses[keyof GetWhiteboardPreviewResponses];
2749
- export type UpdateWhiteboardPreviewData = {
2750
- body: WhiteboardPreviews;
3150
+ export type RevokeWhiteboardPreviewExternalUserResponse = RevokeWhiteboardPreviewExternalUserResponses[keyof RevokeWhiteboardPreviewExternalUserResponses];
3151
+ export type ListWhiteboardPreviewExternalUsersData = {
3152
+ body?: never;
2751
3153
  path: {
2752
3154
  /**
2753
3155
  * Whiteboard Preview ID
2754
3156
  */
2755
- id: string;
3157
+ whiteboard_preview: string;
2756
3158
  };
2757
3159
  query?: never;
2758
- url: '/api/whiteboard-previews/{id}';
3160
+ url: '/api/whiteboard-previews/{whiteboard_preview}/external-users';
2759
3161
  };
2760
- export type UpdateWhiteboardPreviewErrors = {
3162
+ export type ListWhiteboardPreviewExternalUsersErrors = {
2761
3163
  /**
2762
3164
  * Not found
2763
3165
  */
2764
3166
  404: unknown;
2765
3167
  };
2766
- export type UpdateWhiteboardPreviewResponses = {
3168
+ export type ListWhiteboardPreviewExternalUsersResponses = {
2767
3169
  /**
2768
- * Whiteboard preview updated
3170
+ * Whiteboard preview with external users
2769
3171
  */
2770
3172
  200: WhiteboardPreviews;
2771
3173
  };
2772
- export type UpdateWhiteboardPreviewResponse = UpdateWhiteboardPreviewResponses[keyof UpdateWhiteboardPreviewResponses];
3174
+ export type ListWhiteboardPreviewExternalUsersResponse = ListWhiteboardPreviewExternalUsersResponses[keyof ListWhiteboardPreviewExternalUsersResponses];
3175
+ export type InviteWhiteboardPreviewExternalUserData = {
3176
+ body: {
3177
+ email: string;
3178
+ name: string;
3179
+ role: WhiteboardPreviewPublicUserRole;
3180
+ };
3181
+ path: {
3182
+ /**
3183
+ * Whiteboard Preview ID
3184
+ */
3185
+ whiteboard_preview: string;
3186
+ };
3187
+ query?: never;
3188
+ url: '/api/whiteboard-previews/{whiteboard_preview}/external-users';
3189
+ };
3190
+ export type InviteWhiteboardPreviewExternalUserErrors = {
3191
+ /**
3192
+ * Validation error
3193
+ */
3194
+ 422: unknown;
3195
+ };
3196
+ export type InviteWhiteboardPreviewExternalUserResponses = {
3197
+ /**
3198
+ * External user invited successfully
3199
+ */
3200
+ 201: WhiteboardPreviewPublicUser;
3201
+ };
3202
+ export type InviteWhiteboardPreviewExternalUserResponse = InviteWhiteboardPreviewExternalUserResponses[keyof InviteWhiteboardPreviewExternalUserResponses];
2773
3203
  export type ListWorkspacesData = {
2774
3204
  body?: never;
2775
3205
  path?: never;