@adspireai/adspire-node-sdk 1.0.292 → 1.0.294

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.
@@ -1,3 +1,39 @@
1
+ export type ActivityEvent = 'post.created' | 'post.updated' | 'post.duplicated' | 'post.published' | 'posts.generated' | 'approval_request.created' | 'approval_request.responded' | 'whiteboard_preview.reapplied';
2
+ export declare const ActivityEvent: {
3
+ readonly POST_CREATED: "post.created";
4
+ readonly POST_UPDATED: "post.updated";
5
+ readonly POST_DUPLICATED: "post.duplicated";
6
+ readonly POST_PUBLISHED: "post.published";
7
+ readonly POSTS_GENERATED: "posts.generated";
8
+ readonly APPROVAL_REQUEST_CREATED: "approval_request.created";
9
+ readonly APPROVAL_REQUEST_RESPONDED: "approval_request.responded";
10
+ readonly WHITEBOARD_PREVIEW_REAPPLIED: "whiteboard_preview.reapplied";
11
+ };
12
+ export type ApprovalRequestAssigneeType = 'internal_user' | 'external_user' | 'external_invite';
13
+ export declare const ApprovalRequestAssigneeType: {
14
+ readonly INTERNAL_USER: "internal_user";
15
+ readonly EXTERNAL_USER: "external_user";
16
+ readonly EXTERNAL_INVITE: "external_invite";
17
+ };
18
+ export type ApprovalRequestCandidateType = 'internal_user' | 'external_user';
19
+ export declare const ApprovalRequestCandidateType: {
20
+ readonly INTERNAL_USER: "internal_user";
21
+ readonly EXTERNAL_USER: "external_user";
22
+ };
23
+ export type ApprovalRequestStatus = 'pending' | 'approved' | 'rejected' | 'expired';
24
+ export declare const ApprovalRequestStatus: {
25
+ readonly PENDING: "pending";
26
+ readonly APPROVED: "approved";
27
+ readonly REJECTED: "rejected";
28
+ readonly EXPIRED: "expired";
29
+ };
30
+ export type BrandExtractionStatus = 'pending' | 'processing' | 'completed' | 'failed';
31
+ export declare const BrandExtractionStatus: {
32
+ readonly PENDING: "pending";
33
+ readonly PROCESSING: "processing";
34
+ readonly COMPLETED: "completed";
35
+ readonly FAILED: "failed";
36
+ };
1
37
  export type BrandPromptType = 'content' | 'workflow';
2
38
  export declare const BrandPromptType: {
3
39
  readonly CONTENT: "content";
@@ -28,10 +64,12 @@ export declare const ConnectorType: {
28
64
  readonly PABBLY: "pabbly";
29
65
  readonly ZAPIER: "zapier";
30
66
  };
31
- export type NotificationType = 'crawl_post_created' | 'preview_comment_created';
67
+ export type NotificationType = 'crawl_post_created' | 'preview_comment_created' | 'brand_extraction_completed' | 'brand_extraction_failed';
32
68
  export declare const NotificationType: {
33
69
  readonly CRAWL_POST_CREATED: "crawl_post_created";
34
70
  readonly PREVIEW_COMMENT_CREATED: "preview_comment_created";
71
+ readonly BRAND_EXTRACTION_COMPLETED: "brand_extraction_completed";
72
+ readonly BRAND_EXTRACTION_FAILED: "brand_extraction_failed";
35
73
  };
36
74
  export type PlanType = 'brand' | 'agency' | 'pro';
37
75
  export declare const PlanType: {
@@ -39,6 +77,20 @@ export declare const PlanType: {
39
77
  readonly AGENCY: "agency";
40
78
  readonly PRO: "pro";
41
79
  };
80
+ export type PostGenerationFailureReason = 'no_supported_channels' | 'no_posts_generated' | 'unusable_content' | 'unexpected_error';
81
+ export declare const PostGenerationFailureReason: {
82
+ readonly NO_SUPPORTED_CHANNELS: "no_supported_channels";
83
+ readonly NO_POSTS_GENERATED: "no_posts_generated";
84
+ readonly UNUSABLE_CONTENT: "unusable_content";
85
+ readonly UNEXPECTED_ERROR: "unexpected_error";
86
+ };
87
+ export type PostGenerationStatus = 'pending' | 'processing' | 'completed' | 'failed';
88
+ export declare const PostGenerationStatus: {
89
+ readonly PENDING: "pending";
90
+ readonly PROCESSING: "processing";
91
+ readonly COMPLETED: "completed";
92
+ readonly FAILED: "failed";
93
+ };
42
94
  export type PostPlatform = 'facebook' | 'linkedin' | 'blog' | 'google_ads' | 'google_business' | 'figma' | 'instagram' | 'x' | 'tiktok';
43
95
  export declare const PostPlatform: {
44
96
  readonly FACEBOOK: "facebook";
@@ -90,12 +142,6 @@ export declare const UserType: {
90
142
  readonly INTERNAL: "internal";
91
143
  readonly EXTERNAL: "external";
92
144
  };
93
- export type WhiteboardPreviewPublicUserRole = 'viewer' | 'editor' | 'admin';
94
- export declare const WhiteboardPreviewPublicUserRole: {
95
- readonly VIEWER: "viewer";
96
- readonly EDITOR: "editor";
97
- readonly ADMIN: "admin";
98
- };
99
145
  export type WhiteboardPreviewStatus = 'pending' | 'approved' | 'rejected' | 'discarded';
100
146
  export declare const WhiteboardPreviewStatus: {
101
147
  readonly PENDING: "pending";
@@ -172,6 +218,19 @@ export type AiCreditUsageUpdateRequest = {
172
218
  */
173
219
  used_at?: string | null;
174
220
  };
221
+ export type ApprovalRequestRespondRequest = {
222
+ status: ApprovalRequestStatus;
223
+ feedback?: string | null;
224
+ };
225
+ export type WhiteboardPreviewApprovalRequestStoreRequest = {
226
+ type: ApprovalRequestAssigneeType;
227
+ user_id?: string | null;
228
+ external_user_id?: string | null;
229
+ name?: string | null;
230
+ email?: string | null;
231
+ due_date?: string | null;
232
+ notes?: string | null;
233
+ };
175
234
  export type ResetPasswordRequest = {
176
235
  /**
177
236
  * The email address for the account being reset
@@ -213,12 +272,45 @@ export type BrandAssetUpdateRequest = {
213
272
  /**
214
273
  * Heading font family
215
274
  */
216
- heading?: string;
275
+ heading?: string | null;
217
276
  /**
218
277
  * Paragraph font family
219
278
  */
220
- paragraph?: string;
279
+ paragraph?: string | null;
221
280
  } | null;
281
+ /**
282
+ * Brand media assets
283
+ */
284
+ media?: {
285
+ /**
286
+ * Direct URL to the brand logo image
287
+ */
288
+ logo_url?: string | null;
289
+ } | null;
290
+ };
291
+ export type BrandFromWebsiteRequest = {
292
+ /**
293
+ * Company website URL to create the brand from. The https scheme is assumed when omitted.
294
+ */
295
+ url: string;
296
+ };
297
+ export type BrandSettingsUpdateRequest = {
298
+ /**
299
+ * Description of the brand voice and personality
300
+ */
301
+ voice_guidelines?: string | null;
302
+ /**
303
+ * Tone guidance for writing in the brand voice
304
+ */
305
+ tone_rules?: string | null;
306
+ /**
307
+ * Things the brand should never say or do
308
+ */
309
+ restrictions?: string | null;
310
+ /**
311
+ * Description of the brand's target audience
312
+ */
313
+ audience?: string | null;
222
314
  };
223
315
  export type BrandChannelUpdateRequest = {
224
316
  /**
@@ -233,6 +325,16 @@ export type BrandChannelUpdateRequest = {
233
325
  } | null;
234
326
  }>;
235
327
  };
328
+ export type BrandExtractionStoreRequest = {
329
+ /**
330
+ * Company website URL to extract brand information from. The https scheme is assumed when omitted.
331
+ */
332
+ url: string;
333
+ /**
334
+ * When true, skips the reuse of a recent completed extraction for the same URL and always runs a fresh extraction.
335
+ */
336
+ force?: boolean;
337
+ };
236
338
  export type BrandPromptStoreRequest = {
237
339
  type: BrandPromptType;
238
340
  /**
@@ -492,6 +594,93 @@ export type AiCreditUsage = {
492
594
  } | null;
493
595
  used_at?: string | null;
494
596
  };
597
+ export type ActivityItem = {
598
+ id: string;
599
+ event_id: string | null;
600
+ event_type: string;
601
+ status: string | null;
602
+ attempts: number;
603
+ connector_installation_id?: string | null;
604
+ connector?: {
605
+ id?: string;
606
+ name?: string;
607
+ slug?: string;
608
+ logo_url?: string | null;
609
+ } | null;
610
+ payload: {
611
+ [key: string]: unknown;
612
+ } | null;
613
+ response?: {
614
+ [key: string]: unknown;
615
+ } | null;
616
+ sent_at?: string | null;
617
+ next_retry_at?: string | null;
618
+ created_at: string;
619
+ updated_at: string;
620
+ };
621
+ export type ActivityLog = {
622
+ id: string;
623
+ event: string;
624
+ description: string;
625
+ /**
626
+ * The actor who performed the activity; null for system activities
627
+ */
628
+ causer?: {
629
+ id?: string;
630
+ type?: 'user' | 'external_user';
631
+ name?: string | null;
632
+ } | null;
633
+ /**
634
+ * The entity the activity was performed on; null when it no longer exists
635
+ */
636
+ subject?: {
637
+ id?: string;
638
+ type?: string;
639
+ } | null;
640
+ properties?: {
641
+ [key: string]: unknown;
642
+ } | null;
643
+ created_at: string;
644
+ };
645
+ export type ApprovalRequestCandidate = {
646
+ type?: ApprovalRequestCandidateType;
647
+ id?: string | null;
648
+ name?: string | null;
649
+ email?: string;
650
+ already_assigned?: boolean;
651
+ approval_request_id?: string | null;
652
+ };
653
+ export type ApprovalRequests = {
654
+ id?: string;
655
+ workspace_id?: string;
656
+ whiteboard_preview_id?: string | null;
657
+ whiteboard_id?: string | null;
658
+ whiteboard_preview?: {
659
+ id?: string;
660
+ title?: string | null;
661
+ version?: number | null;
662
+ status?: WhiteboardPreviewStatus | null;
663
+ } | null;
664
+ campaign?: {
665
+ id?: string;
666
+ title?: string | null;
667
+ } | null;
668
+ brand?: {
669
+ id?: string;
670
+ name?: string | null;
671
+ } | null;
672
+ requester_id?: string;
673
+ approver_type?: ApprovalRequestCandidateType;
674
+ approver_id?: string;
675
+ approver?: Users | ExternalUsers | null;
676
+ status?: ApprovalRequestStatus;
677
+ due_date?: string | null;
678
+ notes?: string | null;
679
+ sent_at?: string | null;
680
+ viewed_at?: string | null;
681
+ responded_at?: string | null;
682
+ feedback?: string | null;
683
+ };
495
684
  export type BrandAsset = {
496
685
  id?: string;
497
686
  brand_id?: string;
@@ -523,6 +712,103 @@ export type BrandChannel = {
523
712
  [key: string]: unknown;
524
713
  } | null;
525
714
  };
715
+ /**
716
+ * Company information extracted from the website
717
+ */
718
+ export type BrandExtractionCompany = {
719
+ name?: string | null;
720
+ description?: string | null;
721
+ address?: string | null;
722
+ city?: string | null;
723
+ telephone?: string | null;
724
+ email?: string | null;
725
+ industry?: string | null;
726
+ country?: string | null;
727
+ website?: string | null;
728
+ socials?: Array<string> | null;
729
+ } | null;
730
+ /**
731
+ * Brand assets extracted from the website, in the shape accepted by the brand asset update endpoint
732
+ */
733
+ export type BrandExtractionAssets = {
734
+ color_scheme?: {
735
+ /**
736
+ * Ordered brand colors: primary, secondary, accent
737
+ */
738
+ colors?: Array<string>;
739
+ background?: string | null;
740
+ text?: string | null;
741
+ site_scheme?: string;
742
+ };
743
+ typography?: {
744
+ heading?: string | null;
745
+ paragraph?: string | null;
746
+ };
747
+ media?: {
748
+ logo_url?: string | null;
749
+ logo_svg?: string | null;
750
+ cover_images?: Array<string>;
751
+ };
752
+ } | null;
753
+ /**
754
+ * Brand voice fields extracted from the website, in the shape accepted by the brand settings update endpoint
755
+ */
756
+ export type BrandExtractionSettings = {
757
+ voice_guidelines?: string | null;
758
+ tone_rules?: string | null;
759
+ audience?: string | null;
760
+ } | null;
761
+ /**
762
+ * Additional brand profile details extracted from the website, forwarded to the brand graph
763
+ */
764
+ export type BrandExtractionExtras = {
765
+ taglines?: Array<string>;
766
+ value_proposition?: string | null;
767
+ brand_promises?: Array<string>;
768
+ key_people?: Array<{
769
+ name?: string;
770
+ role?: string | null;
771
+ }>;
772
+ sub_brands?: Array<string>;
773
+ } | null;
774
+ /**
775
+ * Extraction result once completed
776
+ */
777
+ export type BrandExtractionData = {
778
+ company?: BrandExtractionCompany;
779
+ settings?: BrandExtractionSettings;
780
+ extras?: BrandExtractionExtras;
781
+ assets?: BrandExtractionAssets;
782
+ /**
783
+ * Per-field confidence scores between 0 and 1
784
+ */
785
+ confidence?: {
786
+ [key: string]: number;
787
+ } | null;
788
+ /**
789
+ * Per-field list of observation sources backing the extracted value
790
+ */
791
+ evidence?: {
792
+ [key: string]: Array<string>;
793
+ } | null;
794
+ platform?: string | null;
795
+ source_url?: string | null;
796
+ } | null;
797
+ export type BrandExtraction = {
798
+ id?: string;
799
+ /**
800
+ * Brand the extraction results are applied to, set when the extraction was started via the create-brand-from-website endpoint
801
+ */
802
+ brand_id?: string | null;
803
+ url?: string;
804
+ status?: BrandExtractionStatus;
805
+ extracted_data?: BrandExtractionData;
806
+ /**
807
+ * Set when status is failed: blocked, render_failed, unusable_content, invalid_result or unexpected_error
808
+ */
809
+ failure_reason?: string | null;
810
+ created_at?: string;
811
+ };
526
812
  export type BrandPrompt = {
527
813
  id?: string;
528
814
  brand_id?: string;
@@ -544,8 +830,24 @@ export type Brands = {
544
830
  selected_industry?: string | null;
545
831
  selected_country?: string | null;
546
832
  contact?: string | null;
833
+ /**
834
+ * Brand logo URL from brand assets, when available
835
+ */
836
+ logo_url?: string | null;
547
837
  brand_channels?: Array<BrandChannel> | null;
548
838
  };
839
+ export type BrandSetting = {
840
+ id?: string;
841
+ brand_id?: string;
842
+ voice_guidelines?: string | null;
843
+ restrictions?: string | null;
844
+ tone_rules?: string | null;
845
+ audience?: string | null;
846
+ /**
847
+ * Temporary URL of the uploaded brand logo
848
+ */
849
+ logo?: string | null;
850
+ };
549
851
  export type Campaigns = {
550
852
  id?: string;
551
853
  brand?: Brands;
@@ -562,7 +864,7 @@ export type Campaigns = {
562
864
  };
563
865
  export type Comments = {
564
866
  id?: string;
565
- commenter?: Users | WhiteboardPreviewPublicUser;
867
+ commenter?: Users | ExternalUsers;
566
868
  commenter_source?: UserType;
567
869
  commentable_type?: CommentableType;
568
870
  /**
@@ -586,6 +888,10 @@ export type Comments = {
586
888
  * Indicates if comment was resolved
587
889
  */
588
890
  is_resolved?: boolean;
891
+ /**
892
+ * Indicates if comment author is assigned as an approver for the current preview
893
+ */
894
+ is_approver?: boolean;
589
895
  /**
590
896
  * Number of replies to this comment
591
897
  */
@@ -622,6 +928,14 @@ export type Connector = {
622
928
  */
623
929
  is_installed?: boolean;
624
930
  };
931
+ export type ExternalUsers = {
932
+ id?: string;
933
+ name?: string | null;
934
+ email?: string;
935
+ workspace_id?: string | null;
936
+ created_at?: string;
937
+ updated_at?: string;
938
+ };
625
939
  export type Notifications = {
626
940
  id: string;
627
941
  type: string;
@@ -649,6 +963,18 @@ export type Notifications = {
649
963
  * SQID of the comment
650
964
  */
651
965
  comment_id?: string | null;
966
+ /**
967
+ * SQID of the brand extraction for extraction notifications
968
+ */
969
+ brand_extraction_id?: string | null;
970
+ /**
971
+ * SQID of the brand the extraction was applied to
972
+ */
973
+ brand_id?: string | null;
974
+ /**
975
+ * Extraction status for extraction notifications
976
+ */
977
+ status?: string | null;
652
978
  type?: string | null;
653
979
  };
654
980
  timestamp?: string;
@@ -657,6 +983,28 @@ export type Notifications = {
657
983
  created_at: string;
658
984
  updated_at: string;
659
985
  };
986
+ export type PostGenerationChannel = {
987
+ id?: string;
988
+ platform?: string;
989
+ };
990
+ export type PostGeneration = {
991
+ id?: string;
992
+ url?: string;
993
+ status?: PostGenerationStatus;
994
+ /**
995
+ * Number of posts this generation will create, one per channel
996
+ */
997
+ expected_post_count?: number;
998
+ /**
999
+ * Brand channels the posts will be generated for
1000
+ */
1001
+ channels?: Array<PostGenerationChannel>;
1002
+ /**
1003
+ * Set when status is failed
1004
+ */
1005
+ failure_reason?: PostGenerationFailureReason | null;
1006
+ created_at?: string;
1007
+ };
660
1008
  export type Users = {
661
1009
  id?: string;
662
1010
  name?: string;
@@ -714,18 +1062,29 @@ export type WhiteboardPreviews = {
714
1062
  version?: number;
715
1063
  campaign?: Campaigns | null;
716
1064
  created_by?: Users;
1065
+ reviewed_by?: Users | ExternalUsers | null;
717
1066
  created_at?: string;
718
- external_users?: Array<WhiteboardPreviewPublicUser>;
1067
+ };
1068
+ export type WhiteboardPreviewVersion = {
1069
+ id?: string;
1070
+ whiteboard_id?: string;
1071
+ title?: string;
1072
+ version?: number;
1073
+ status?: WhiteboardPreviewStatus;
1074
+ approval_request_id?: string | null;
1075
+ is_current?: boolean;
1076
+ is_respondable?: boolean;
719
1077
  };
720
1078
  export type WhiteboardPreviewsWithPosts = {
721
1079
  id?: string;
722
1080
  title: string;
723
1081
  status?: WhiteboardPreviewStatus;
1082
+ approval_request_id?: string | null;
724
1083
  feedback?: string | null;
725
1084
  campaign?: Campaigns | null;
726
1085
  created_by?: Users;
727
1086
  created_at?: string;
728
- reviewed_by?: Users | null;
1087
+ reviewed_by?: Users | ExternalUsers | null;
729
1088
  reviewed_at?: string | null;
730
1089
  posts?: Array<WhiteboardPreviewPosts>;
731
1090
  };
@@ -751,7 +1110,7 @@ export type WorkspaceDetail = {
751
1110
  /**
752
1111
  * Date when the plan expires or renews
753
1112
  */
754
- plan_expires_within?: string;
1113
+ plan_expires_within?: string | null;
755
1114
  };
756
1115
  export type WorkspaceInvitation = {
757
1116
  /**
@@ -791,15 +1150,6 @@ export type Workspaces = {
791
1150
  id: string;
792
1151
  name: string;
793
1152
  };
794
- export type ActivityLogs = {
795
- id?: string;
796
- loggable_type: string;
797
- user_id: string;
798
- action: string;
799
- comment?: string;
800
- created_at?: string;
801
- updated_at?: string;
802
- };
803
1153
  export type ApiKeys = {
804
1154
  id?: string;
805
1155
  user_id: string;
@@ -808,16 +1158,6 @@ export type ApiKeys = {
808
1158
  created_at?: string;
809
1159
  updated_at?: string;
810
1160
  };
811
- export type ApprovalRequests = {
812
- user_id: string;
813
- whiteboard_preview_id: string;
814
- status: string;
815
- reason?: string;
816
- decision?: string;
817
- reviewed_by?: number;
818
- created_at?: string;
819
- updated_at?: string;
820
- };
821
1161
  export type Companies = {
822
1162
  id?: string;
823
1163
  name: string;
@@ -830,13 +1170,6 @@ export type CompanyUsers = {
830
1170
  user_id?: number;
831
1171
  company_id?: string;
832
1172
  };
833
- export type ExternalUsers = {
834
- id?: string;
835
- email: string;
836
- name?: string;
837
- created_at?: string;
838
- updated_at?: string;
839
- };
840
1173
  export type Packages = {
841
1174
  id?: string;
842
1175
  name: string;
@@ -864,6 +1197,10 @@ export type Whiteboards = {
864
1197
  export type WhiteboardsWithPosts = Whiteboards & {
865
1198
  campaign?: Campaigns;
866
1199
  posts?: Array<WhiteboardPosts>;
1200
+ /**
1201
+ * In-flight and recently failed URL post generations for the whiteboard
1202
+ */
1203
+ pending_generations?: Array<PostGeneration>;
867
1204
  };
868
1205
  export type WhiteboardPosts = {
869
1206
  id?: string;
@@ -911,13 +1248,6 @@ export type WhiteboardPreviewPosts = {
911
1248
  approval?: boolean;
912
1249
  audience?: Array<string> | null;
913
1250
  };
914
- export type WhiteboardPreviewPublicUser = {
915
- id?: string;
916
- name?: string;
917
- email?: string;
918
- role?: WhiteboardPreviewPublicUserRole;
919
- last_visit_at?: string;
920
- };
921
1251
  export type WorkspaceUser = {
922
1252
  id?: string;
923
1253
  user_id: string;
@@ -927,265 +1257,6 @@ export type WorkspaceUser = {
927
1257
  */
928
1258
  role?: 'admin' | 'agency_user' | 'partner' | 'external_approver';
929
1259
  };
930
- export type ListActivityLogsData = {
931
- body?: never;
932
- path?: never;
933
- query?: never;
934
- url: '/api/activity-logs';
935
- };
936
- export type ListActivityLogsResponses = {
937
- /**
938
- * Successful operation
939
- */
940
- 200: Array<ActivityLogs>;
941
- };
942
- export type ListActivityLogsResponse = ListActivityLogsResponses[keyof ListActivityLogsResponses];
943
- export type CreateActivityLogData = {
944
- body: ActivityLogs;
945
- path?: never;
946
- query?: never;
947
- url: '/api/activity-logs';
948
- };
949
- export type CreateActivityLogErrors = {
950
- /**
951
- * Validation error
952
- */
953
- 422: unknown;
954
- };
955
- export type CreateActivityLogResponses = {
956
- /**
957
- * Activity log created
958
- */
959
- 201: ActivityLogs;
960
- };
961
- export type CreateActivityLogResponse = CreateActivityLogResponses[keyof CreateActivityLogResponses];
962
- export type ListWorkspaceActivityLogsData = {
963
- body?: never;
964
- path: {
965
- /**
966
- * Workspace ID
967
- */
968
- workspace_id: string;
969
- };
970
- query?: never;
971
- url: '/api/workspaces/{workspace_id}/activity-logs';
972
- };
973
- export type ListWorkspaceActivityLogsResponses = {
974
- /**
975
- * Successful operation
976
- */
977
- 200: Array<ActivityLogs>;
978
- };
979
- export type ListWorkspaceActivityLogsResponse = ListWorkspaceActivityLogsResponses[keyof ListWorkspaceActivityLogsResponses];
980
- export type ListBrandActivityLogsData = {
981
- body?: never;
982
- path: {
983
- /**
984
- * Brand ID
985
- */
986
- brand_id: string;
987
- };
988
- query?: never;
989
- url: '/api/brands/{brand_id}/activity-logs';
990
- };
991
- export type ListBrandActivityLogsResponses = {
992
- /**
993
- * Successful operation
994
- */
995
- 200: Array<ActivityLogs>;
996
- };
997
- export type ListBrandActivityLogsResponse = ListBrandActivityLogsResponses[keyof ListBrandActivityLogsResponses];
998
- export type DeleteActivityLogData = {
999
- body?: never;
1000
- path: {
1001
- /**
1002
- * ActivityLog ID
1003
- */
1004
- id: string;
1005
- };
1006
- query?: never;
1007
- url: '/api/activity-logs/{id}';
1008
- };
1009
- export type DeleteActivityLogErrors = {
1010
- /**
1011
- * Not found
1012
- */
1013
- 404: unknown;
1014
- };
1015
- export type DeleteActivityLogResponses = {
1016
- /**
1017
- * Activity log deleted
1018
- */
1019
- 204: void;
1020
- };
1021
- export type DeleteActivityLogResponse = DeleteActivityLogResponses[keyof DeleteActivityLogResponses];
1022
- export type GetActivityLogData = {
1023
- body?: never;
1024
- path: {
1025
- /**
1026
- * ActivityLog ID
1027
- */
1028
- id: string;
1029
- };
1030
- query?: never;
1031
- url: '/api/activity-logs/{id}';
1032
- };
1033
- export type GetActivityLogErrors = {
1034
- /**
1035
- * Not found
1036
- */
1037
- 404: unknown;
1038
- };
1039
- export type GetActivityLogResponses = {
1040
- /**
1041
- * Successful operation
1042
- */
1043
- 200: ActivityLogs;
1044
- };
1045
- export type GetActivityLogResponse = GetActivityLogResponses[keyof GetActivityLogResponses];
1046
- export type UpdateActivityLogData = {
1047
- body: ActivityLogs;
1048
- path: {
1049
- /**
1050
- * ActivityLog ID
1051
- */
1052
- id: string;
1053
- };
1054
- query?: never;
1055
- url: '/api/activity-logs/{id}';
1056
- };
1057
- export type UpdateActivityLogErrors = {
1058
- /**
1059
- * Not found
1060
- */
1061
- 404: unknown;
1062
- };
1063
- export type UpdateActivityLogResponses = {
1064
- /**
1065
- * Activity log updated
1066
- */
1067
- 200: ActivityLogs;
1068
- };
1069
- export type UpdateActivityLogResponse = UpdateActivityLogResponses[keyof UpdateActivityLogResponses];
1070
- export type ListApprovalRequestsData = {
1071
- body?: never;
1072
- path?: never;
1073
- query?: never;
1074
- url: '/api/approval-requests';
1075
- };
1076
- export type ListApprovalRequestsResponses = {
1077
- /**
1078
- * List of approval requests
1079
- */
1080
- 200: Array<ApprovalRequests>;
1081
- };
1082
- export type ListApprovalRequestsResponse = ListApprovalRequestsResponses[keyof ListApprovalRequestsResponses];
1083
- export type CreateApprovalRequestData = {
1084
- body: ApprovalRequests;
1085
- path?: never;
1086
- query?: never;
1087
- url: '/api/approval-requests';
1088
- };
1089
- export type CreateApprovalRequestErrors = {
1090
- /**
1091
- * Validation error
1092
- */
1093
- 422: unknown;
1094
- };
1095
- export type CreateApprovalRequestResponses = {
1096
- /**
1097
- * Approval request created
1098
- */
1099
- 201: ApprovalRequests;
1100
- };
1101
- export type CreateApprovalRequestResponse = CreateApprovalRequestResponses[keyof CreateApprovalRequestResponses];
1102
- export type ListApprovalRequestsByWhiteboardPreviewData = {
1103
- body?: never;
1104
- path: {
1105
- whiteboardPreview: string;
1106
- };
1107
- query?: never;
1108
- url: '/api/whiteboard-preview/{whiteboardPreview}/approval-requests';
1109
- };
1110
- export type ListApprovalRequestsByWhiteboardPreviewResponses = {
1111
- /**
1112
- * List of approval requests
1113
- */
1114
- 200: Array<ApprovalRequests>;
1115
- };
1116
- export type ListApprovalRequestsByWhiteboardPreviewResponse = ListApprovalRequestsByWhiteboardPreviewResponses[keyof ListApprovalRequestsByWhiteboardPreviewResponses];
1117
- export type DeleteApprovalRequestData = {
1118
- body?: never;
1119
- path: {
1120
- /**
1121
- * ApprovalRequest ID
1122
- */
1123
- id: string;
1124
- };
1125
- query?: never;
1126
- url: '/api/approval-requests/{id}';
1127
- };
1128
- export type DeleteApprovalRequestErrors = {
1129
- /**
1130
- * Not found
1131
- */
1132
- 404: unknown;
1133
- };
1134
- export type DeleteApprovalRequestResponses = {
1135
- /**
1136
- * Approval request deleted
1137
- */
1138
- 204: void;
1139
- };
1140
- export type DeleteApprovalRequestResponse = DeleteApprovalRequestResponses[keyof DeleteApprovalRequestResponses];
1141
- export type GetApprovalRequestData = {
1142
- body?: never;
1143
- path: {
1144
- /**
1145
- * ApprovalRequest ID
1146
- */
1147
- id: string;
1148
- };
1149
- query?: never;
1150
- url: '/api/approval-requests/{id}';
1151
- };
1152
- export type GetApprovalRequestErrors = {
1153
- /**
1154
- * Not found
1155
- */
1156
- 404: unknown;
1157
- };
1158
- export type GetApprovalRequestResponses = {
1159
- /**
1160
- * Approval request details
1161
- */
1162
- 200: ApprovalRequests;
1163
- };
1164
- export type GetApprovalRequestResponse = GetApprovalRequestResponses[keyof GetApprovalRequestResponses];
1165
- export type UpdateApprovalRequestData = {
1166
- body: ApprovalRequests;
1167
- path: {
1168
- /**
1169
- * ApprovalRequest ID
1170
- */
1171
- id: string;
1172
- };
1173
- query?: never;
1174
- url: '/api/approval-requests/{id}';
1175
- };
1176
- export type UpdateApprovalRequestErrors = {
1177
- /**
1178
- * Not found
1179
- */
1180
- 404: unknown;
1181
- };
1182
- export type UpdateApprovalRequestResponses = {
1183
- /**
1184
- * Approval request updated
1185
- */
1186
- 200: ApprovalRequests;
1187
- };
1188
- export type UpdateApprovalRequestResponse = UpdateApprovalRequestResponses[keyof UpdateApprovalRequestResponses];
1189
1260
  export type LoginUserData = {
1190
1261
  body: {
1191
1262
  email: string;
@@ -2553,9 +2624,15 @@ export type ListWhiteboardPostsErrors = {
2553
2624
  };
2554
2625
  export type ListWhiteboardPostsResponses = {
2555
2626
  /**
2556
- * List of whiteboard posts
2627
+ * List of whiteboard posts with pending URL post generations
2557
2628
  */
2558
- 200: Array<WhiteboardPosts>;
2629
+ 200: {
2630
+ data?: Array<WhiteboardPosts>;
2631
+ /**
2632
+ * In-flight and recently failed URL post generations for the whiteboard
2633
+ */
2634
+ pending_generations?: Array<PostGeneration>;
2635
+ };
2559
2636
  };
2560
2637
  export type ListWhiteboardPostsResponse = ListWhiteboardPostsResponses[keyof ListWhiteboardPostsResponses];
2561
2638
  export type CreateWhiteboardPostData = {
@@ -2911,88 +2988,6 @@ export type DeleteWhiteboardPreviewResponses = {
2911
2988
  204: void;
2912
2989
  };
2913
2990
  export type DeleteWhiteboardPreviewResponse = DeleteWhiteboardPreviewResponses[keyof DeleteWhiteboardPreviewResponses];
2914
- export type RevokeWhiteboardPreviewExternalUserData = {
2915
- body?: never;
2916
- path: {
2917
- /**
2918
- * Whiteboard Preview ID
2919
- */
2920
- whiteboard_preview: string;
2921
- /**
2922
- * External User ID
2923
- */
2924
- whiteboard_preview_public_user: string;
2925
- };
2926
- query?: never;
2927
- url: '/api/whiteboard-previews/{whiteboard_preview}/external-users/{whiteboard_preview_public_user}';
2928
- };
2929
- export type RevokeWhiteboardPreviewExternalUserErrors = {
2930
- /**
2931
- * Not found
2932
- */
2933
- 404: unknown;
2934
- };
2935
- export type RevokeWhiteboardPreviewExternalUserResponses = {
2936
- /**
2937
- * External user access revoked
2938
- */
2939
- 200: {
2940
- success?: string;
2941
- };
2942
- };
2943
- export type RevokeWhiteboardPreviewExternalUserResponse = RevokeWhiteboardPreviewExternalUserResponses[keyof RevokeWhiteboardPreviewExternalUserResponses];
2944
- export type ListWhiteboardPreviewExternalUsersData = {
2945
- body?: never;
2946
- path: {
2947
- /**
2948
- * Whiteboard Preview ID
2949
- */
2950
- whiteboard_preview: string;
2951
- };
2952
- query?: never;
2953
- url: '/api/whiteboard-previews/{whiteboard_preview}/external-users';
2954
- };
2955
- export type ListWhiteboardPreviewExternalUsersErrors = {
2956
- /**
2957
- * Not found
2958
- */
2959
- 404: unknown;
2960
- };
2961
- export type ListWhiteboardPreviewExternalUsersResponses = {
2962
- /**
2963
- * Whiteboard preview with external users
2964
- */
2965
- 200: WhiteboardPreviews;
2966
- };
2967
- export type ListWhiteboardPreviewExternalUsersResponse = ListWhiteboardPreviewExternalUsersResponses[keyof ListWhiteboardPreviewExternalUsersResponses];
2968
- export type InviteWhiteboardPreviewExternalUserData = {
2969
- body: {
2970
- email: string;
2971
- name: string;
2972
- role: WhiteboardPreviewPublicUserRole;
2973
- };
2974
- path: {
2975
- /**
2976
- * Whiteboard Preview ID
2977
- */
2978
- whiteboard_preview: string;
2979
- };
2980
- query?: never;
2981
- url: '/api/whiteboard-previews/{whiteboard_preview}/external-users';
2982
- };
2983
- export type InviteWhiteboardPreviewExternalUserErrors = {
2984
- /**
2985
- * Validation error
2986
- */
2987
- 422: unknown;
2988
- };
2989
- export type InviteWhiteboardPreviewExternalUserResponses = {
2990
- /**
2991
- * External user invited successfully
2992
- */
2993
- 201: WhiteboardPreviewPublicUser;
2994
- };
2995
- export type InviteWhiteboardPreviewExternalUserResponse = InviteWhiteboardPreviewExternalUserResponses[keyof InviteWhiteboardPreviewExternalUserResponses];
2996
2991
  export type ClientOptions = {
2997
2992
  baseUrl: 'https://staging.adspire.ai' | (string & {});
2998
2993
  };