@adspireai/adspire-node-sdk 1.0.256 → 1.0.286
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.
- package/dist-public/sdk.gen.d.ts +2 -362
- package/dist-public/sdk.gen.js +133 -1188
- package/dist-public/sdk.gen.js.map +1 -1
- package/dist-public/types.gen.d.ts +265 -2226
- package/dist-public/types.gen.js +8 -2
- package/dist-public/types.gen.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,21 +28,28 @@ export declare const ConnectorType: {
|
|
|
28
28
|
readonly PABBLY: "pabbly";
|
|
29
29
|
readonly ZAPIER: "zapier";
|
|
30
30
|
};
|
|
31
|
+
export type NotificationType = 'crawl_post_created' | 'preview_comment_created';
|
|
32
|
+
export declare const NotificationType: {
|
|
33
|
+
readonly CRAWL_POST_CREATED: "crawl_post_created";
|
|
34
|
+
readonly PREVIEW_COMMENT_CREATED: "preview_comment_created";
|
|
35
|
+
};
|
|
31
36
|
export type PlanType = 'brand' | 'agency' | 'pro';
|
|
32
37
|
export declare const PlanType: {
|
|
33
38
|
readonly BRAND: "brand";
|
|
34
39
|
readonly AGENCY: "agency";
|
|
35
40
|
readonly PRO: "pro";
|
|
36
41
|
};
|
|
37
|
-
export type PostPlatform = 'facebook' | 'linkedin' | 'blog' | 'google_ads' | 'figma' | 'instagram' | '
|
|
42
|
+
export type PostPlatform = 'facebook' | 'linkedin' | 'blog' | 'google_ads' | 'google_business' | 'figma' | 'instagram' | 'x' | 'tiktok';
|
|
38
43
|
export declare const PostPlatform: {
|
|
39
44
|
readonly FACEBOOK: "facebook";
|
|
40
45
|
readonly LINKEDIN: "linkedin";
|
|
41
46
|
readonly BLOG: "blog";
|
|
42
47
|
readonly GOOGLE_ADS: "google_ads";
|
|
48
|
+
readonly GOOGLE_BUSINESS: "google_business";
|
|
43
49
|
readonly FIGMA: "figma";
|
|
44
50
|
readonly INSTAGRAM: "instagram";
|
|
45
|
-
readonly
|
|
51
|
+
readonly X: "x";
|
|
52
|
+
readonly TIKTOK: "tiktok";
|
|
46
53
|
};
|
|
47
54
|
export type PostStatus = 'draft' | 'scheduled' | 'published' | 'error';
|
|
48
55
|
export declare const PostStatus: {
|
|
@@ -165,6 +172,30 @@ export type AiCreditUsageUpdateRequest = {
|
|
|
165
172
|
*/
|
|
166
173
|
used_at?: string | null;
|
|
167
174
|
};
|
|
175
|
+
export type ResetPasswordRequest = {
|
|
176
|
+
/**
|
|
177
|
+
* The email address for the account being reset
|
|
178
|
+
*/
|
|
179
|
+
email: string;
|
|
180
|
+
/**
|
|
181
|
+
* The password reset token from the reset link
|
|
182
|
+
*/
|
|
183
|
+
token: string;
|
|
184
|
+
/**
|
|
185
|
+
* The new password
|
|
186
|
+
*/
|
|
187
|
+
password: string;
|
|
188
|
+
/**
|
|
189
|
+
* Confirmation of the new password
|
|
190
|
+
*/
|
|
191
|
+
password_confirmation: string;
|
|
192
|
+
};
|
|
193
|
+
export type SendPasswordResetLinkRequest = {
|
|
194
|
+
/**
|
|
195
|
+
* The email address requesting a password reset link
|
|
196
|
+
*/
|
|
197
|
+
email: string;
|
|
198
|
+
};
|
|
168
199
|
export type SelectPlanRequest = {
|
|
169
200
|
plan: PlanType;
|
|
170
201
|
};
|
|
@@ -191,9 +222,11 @@ export type BrandAssetUpdateRequest = {
|
|
|
191
222
|
};
|
|
192
223
|
export type BrandChannelUpdateRequest = {
|
|
193
224
|
/**
|
|
194
|
-
* List of channels with
|
|
225
|
+
* List of brand channels with channel type and optional details
|
|
195
226
|
*/
|
|
196
227
|
channels: Array<{
|
|
228
|
+
id?: string | null;
|
|
229
|
+
name: string;
|
|
197
230
|
channel_type: PostPlatform;
|
|
198
231
|
details?: {
|
|
199
232
|
[key: string]: unknown;
|
|
@@ -247,10 +280,6 @@ export type CampaignStoreRequest = {
|
|
|
247
280
|
* Campaign status
|
|
248
281
|
*/
|
|
249
282
|
status?: CampaignStatus | null;
|
|
250
|
-
/**
|
|
251
|
-
* Target platforms for the campaign (must be a subset of the brand's channels)
|
|
252
|
-
*/
|
|
253
|
-
platforms?: Array<PostPlatform> | null;
|
|
254
283
|
};
|
|
255
284
|
export type CampaignUpdateRequest = {
|
|
256
285
|
/**
|
|
@@ -277,10 +306,6 @@ export type CampaignUpdateRequest = {
|
|
|
277
306
|
* Campaign status
|
|
278
307
|
*/
|
|
279
308
|
status?: CampaignStatus | null;
|
|
280
|
-
/**
|
|
281
|
-
* Target platforms for the campaign (must be a subset of the brand's channels)
|
|
282
|
-
*/
|
|
283
|
-
platforms?: Array<PostPlatform> | null;
|
|
284
309
|
};
|
|
285
310
|
export type ConnectorInstallationStoreRequest = {
|
|
286
311
|
/**
|
|
@@ -492,6 +517,7 @@ export type BrandAsset = {
|
|
|
492
517
|
export type BrandChannel = {
|
|
493
518
|
id?: string;
|
|
494
519
|
brand_id?: string;
|
|
520
|
+
name?: string;
|
|
495
521
|
channel_type?: PostPlatform;
|
|
496
522
|
details?: {
|
|
497
523
|
[key: string]: unknown;
|
|
@@ -528,7 +554,6 @@ export type Campaigns = {
|
|
|
528
554
|
end_date?: string;
|
|
529
555
|
status?: string | null;
|
|
530
556
|
description?: string | null;
|
|
531
|
-
platforms?: Array<PostPlatform> | null;
|
|
532
557
|
/**
|
|
533
558
|
* Image URL from the first whiteboard post that has one
|
|
534
559
|
*/
|
|
@@ -597,6 +622,41 @@ export type Connector = {
|
|
|
597
622
|
*/
|
|
598
623
|
is_installed?: boolean;
|
|
599
624
|
};
|
|
625
|
+
export type Notifications = {
|
|
626
|
+
id: string;
|
|
627
|
+
type: string;
|
|
628
|
+
data: {
|
|
629
|
+
message?: string;
|
|
630
|
+
type?: NotificationType;
|
|
631
|
+
data?: {
|
|
632
|
+
/**
|
|
633
|
+
* SQID of the whiteboard preview
|
|
634
|
+
*/
|
|
635
|
+
whiteboard_preview_id?: string | null;
|
|
636
|
+
/**
|
|
637
|
+
* SQID of the whiteboard preview post for post-level comments
|
|
638
|
+
*/
|
|
639
|
+
whiteboard_preview_post_id?: string | null;
|
|
640
|
+
/**
|
|
641
|
+
* SQID of the whiteboard post for generated-post notifications
|
|
642
|
+
*/
|
|
643
|
+
whiteboard_post_id?: string | null;
|
|
644
|
+
/**
|
|
645
|
+
* SQID of the whiteboard
|
|
646
|
+
*/
|
|
647
|
+
whiteboard_id?: string;
|
|
648
|
+
/**
|
|
649
|
+
* SQID of the comment
|
|
650
|
+
*/
|
|
651
|
+
comment_id?: string | null;
|
|
652
|
+
type?: string | null;
|
|
653
|
+
};
|
|
654
|
+
timestamp?: string;
|
|
655
|
+
};
|
|
656
|
+
read_at: string | null;
|
|
657
|
+
created_at: string;
|
|
658
|
+
updated_at: string;
|
|
659
|
+
};
|
|
600
660
|
export type Users = {
|
|
601
661
|
id?: string;
|
|
602
662
|
name?: string;
|
|
@@ -612,6 +672,41 @@ export type Users = {
|
|
|
612
672
|
*/
|
|
613
673
|
is_owner?: boolean;
|
|
614
674
|
};
|
|
675
|
+
export type WebhookEvents = {
|
|
676
|
+
id: string;
|
|
677
|
+
connector_installation_id?: string | null;
|
|
678
|
+
event_id?: string | null;
|
|
679
|
+
event_type: string;
|
|
680
|
+
payload: {
|
|
681
|
+
[key: string]: unknown;
|
|
682
|
+
} | null;
|
|
683
|
+
status: string | null;
|
|
684
|
+
response?: {
|
|
685
|
+
[key: string]: unknown;
|
|
686
|
+
} | null;
|
|
687
|
+
attempts: number;
|
|
688
|
+
sent_at?: string | null;
|
|
689
|
+
next_retry_at?: string | null;
|
|
690
|
+
created_at: string;
|
|
691
|
+
updated_at: string;
|
|
692
|
+
};
|
|
693
|
+
export type WebhookLogs = {
|
|
694
|
+
id: string;
|
|
695
|
+
connector_installation_id?: string | null;
|
|
696
|
+
direction: 'incoming' | 'outgoing';
|
|
697
|
+
event_type: string;
|
|
698
|
+
payload: {
|
|
699
|
+
[key: string]: unknown;
|
|
700
|
+
} | null;
|
|
701
|
+
status_code?: string | null;
|
|
702
|
+
response?: {
|
|
703
|
+
[key: string]: unknown;
|
|
704
|
+
} | null;
|
|
705
|
+
ip_address?: string | null;
|
|
706
|
+
user_agent?: string | null;
|
|
707
|
+
created_at: string;
|
|
708
|
+
updated_at: string;
|
|
709
|
+
};
|
|
615
710
|
export type WhiteboardPreviews = {
|
|
616
711
|
id?: string;
|
|
617
712
|
whiteboard_id: string;
|
|
@@ -742,16 +837,6 @@ export type ExternalUsers = {
|
|
|
742
837
|
created_at?: string;
|
|
743
838
|
updated_at?: string;
|
|
744
839
|
};
|
|
745
|
-
export type Notifications = {
|
|
746
|
-
id?: string;
|
|
747
|
-
notifiable_type: string;
|
|
748
|
-
notifiable_id: string;
|
|
749
|
-
message: string;
|
|
750
|
-
type?: string;
|
|
751
|
-
read_at?: string | null;
|
|
752
|
-
created_at?: string;
|
|
753
|
-
updated_at?: string;
|
|
754
|
-
};
|
|
755
840
|
export type Packages = {
|
|
756
841
|
id?: string;
|
|
757
842
|
name: string;
|
|
@@ -762,32 +847,6 @@ export type Packages = {
|
|
|
762
847
|
created_at?: string;
|
|
763
848
|
updated_at?: string;
|
|
764
849
|
};
|
|
765
|
-
export type WebhookEvents = {
|
|
766
|
-
id?: string;
|
|
767
|
-
event_type: string;
|
|
768
|
-
connector_installation_id: string;
|
|
769
|
-
payload: {
|
|
770
|
-
[key: string]: unknown;
|
|
771
|
-
};
|
|
772
|
-
received_at?: string;
|
|
773
|
-
created_at?: string;
|
|
774
|
-
updated_at?: string;
|
|
775
|
-
};
|
|
776
|
-
export type WebhookLogs = {
|
|
777
|
-
id?: string;
|
|
778
|
-
connector_installation_id: string;
|
|
779
|
-
direction: 'incoming' | 'outgoing';
|
|
780
|
-
event_type: string;
|
|
781
|
-
payload: {
|
|
782
|
-
[key: string]: unknown;
|
|
783
|
-
};
|
|
784
|
-
success?: boolean;
|
|
785
|
-
response?: {
|
|
786
|
-
[key: string]: unknown;
|
|
787
|
-
};
|
|
788
|
-
created_at?: string;
|
|
789
|
-
updated_at?: string;
|
|
790
|
-
};
|
|
791
850
|
export type Whiteboards = {
|
|
792
851
|
id?: string;
|
|
793
852
|
campaign_id?: string | null;
|
|
@@ -809,8 +868,8 @@ export type WhiteboardsWithPosts = Whiteboards & {
|
|
|
809
868
|
export type WhiteboardPosts = {
|
|
810
869
|
id?: string;
|
|
811
870
|
whiteboard_id: string;
|
|
871
|
+
channel?: BrandChannel;
|
|
812
872
|
type?: PostType | null;
|
|
813
|
-
platform?: PostPlatform | null;
|
|
814
873
|
content?: string | null;
|
|
815
874
|
title?: string | null;
|
|
816
875
|
image_url?: string | null;
|
|
@@ -836,8 +895,12 @@ export type WhiteboardPosts = {
|
|
|
836
895
|
export type WhiteboardPreviewPosts = {
|
|
837
896
|
id?: string;
|
|
838
897
|
whiteboard_preview_id?: string;
|
|
898
|
+
/**
|
|
899
|
+
* Original whiteboard post ID
|
|
900
|
+
*/
|
|
901
|
+
whiteboard_post_id?: string | null;
|
|
902
|
+
channel?: BrandChannel;
|
|
839
903
|
type?: PostType | null;
|
|
840
|
-
platform?: PostPlatform | null;
|
|
841
904
|
content?: string;
|
|
842
905
|
title?: string | null;
|
|
843
906
|
image_url?: string | null;
|
|
@@ -864,192 +927,6 @@ export type WorkspaceUser = {
|
|
|
864
927
|
*/
|
|
865
928
|
role?: 'admin' | 'agency_user' | 'partner' | 'external_approver';
|
|
866
929
|
};
|
|
867
|
-
export type ListAiCreditUsagesData = {
|
|
868
|
-
body?: never;
|
|
869
|
-
path?: never;
|
|
870
|
-
query?: never;
|
|
871
|
-
url: '/api/ai-credit-usages';
|
|
872
|
-
};
|
|
873
|
-
export type ListAiCreditUsagesErrors = {
|
|
874
|
-
/**
|
|
875
|
-
* Unauthenticated
|
|
876
|
-
*/
|
|
877
|
-
401: unknown;
|
|
878
|
-
};
|
|
879
|
-
export type ListAiCreditUsagesResponses = {
|
|
880
|
-
/**
|
|
881
|
-
* Successful operation
|
|
882
|
-
*/
|
|
883
|
-
200: Array<AiCreditUsage>;
|
|
884
|
-
};
|
|
885
|
-
export type ListAiCreditUsagesResponse = ListAiCreditUsagesResponses[keyof ListAiCreditUsagesResponses];
|
|
886
|
-
export type CreateAiCreditUsageData = {
|
|
887
|
-
body: AiCreditUsageStoreRequest;
|
|
888
|
-
path?: never;
|
|
889
|
-
query?: never;
|
|
890
|
-
url: '/api/ai-credit-usages';
|
|
891
|
-
};
|
|
892
|
-
export type CreateAiCreditUsageErrors = {
|
|
893
|
-
/**
|
|
894
|
-
* Unauthenticated
|
|
895
|
-
*/
|
|
896
|
-
401: unknown;
|
|
897
|
-
/**
|
|
898
|
-
* Validation error
|
|
899
|
-
*/
|
|
900
|
-
422: unknown;
|
|
901
|
-
};
|
|
902
|
-
export type CreateAiCreditUsageResponses = {
|
|
903
|
-
/**
|
|
904
|
-
* Record created
|
|
905
|
-
*/
|
|
906
|
-
201: AiCreditUsage;
|
|
907
|
-
};
|
|
908
|
-
export type CreateAiCreditUsageResponse = CreateAiCreditUsageResponses[keyof CreateAiCreditUsageResponses];
|
|
909
|
-
export type ListBrandAiCreditUsagesData = {
|
|
910
|
-
body?: never;
|
|
911
|
-
path: {
|
|
912
|
-
/**
|
|
913
|
-
* Brand ID (sqid)
|
|
914
|
-
*/
|
|
915
|
-
brand: string;
|
|
916
|
-
};
|
|
917
|
-
query?: never;
|
|
918
|
-
url: '/api/brands/{brand}/ai-credit-usages';
|
|
919
|
-
};
|
|
920
|
-
export type ListBrandAiCreditUsagesErrors = {
|
|
921
|
-
/**
|
|
922
|
-
* Unauthenticated
|
|
923
|
-
*/
|
|
924
|
-
401: unknown;
|
|
925
|
-
/**
|
|
926
|
-
* Brand not found
|
|
927
|
-
*/
|
|
928
|
-
404: unknown;
|
|
929
|
-
};
|
|
930
|
-
export type ListBrandAiCreditUsagesResponses = {
|
|
931
|
-
/**
|
|
932
|
-
* Successful operation
|
|
933
|
-
*/
|
|
934
|
-
200: Array<AiCreditUsage>;
|
|
935
|
-
};
|
|
936
|
-
export type ListBrandAiCreditUsagesResponse = ListBrandAiCreditUsagesResponses[keyof ListBrandAiCreditUsagesResponses];
|
|
937
|
-
export type ListWorkspaceAiCreditUsagesData = {
|
|
938
|
-
body?: never;
|
|
939
|
-
path: {
|
|
940
|
-
/**
|
|
941
|
-
* Workspace ID (sqid)
|
|
942
|
-
*/
|
|
943
|
-
workspace: string;
|
|
944
|
-
};
|
|
945
|
-
query?: never;
|
|
946
|
-
url: '/api/workspaces/{workspace}/ai-credit-usages';
|
|
947
|
-
};
|
|
948
|
-
export type ListWorkspaceAiCreditUsagesErrors = {
|
|
949
|
-
/**
|
|
950
|
-
* Unauthenticated
|
|
951
|
-
*/
|
|
952
|
-
401: unknown;
|
|
953
|
-
/**
|
|
954
|
-
* Workspace not found
|
|
955
|
-
*/
|
|
956
|
-
404: unknown;
|
|
957
|
-
};
|
|
958
|
-
export type ListWorkspaceAiCreditUsagesResponses = {
|
|
959
|
-
/**
|
|
960
|
-
* Successful operation
|
|
961
|
-
*/
|
|
962
|
-
200: Array<AiCreditUsage>;
|
|
963
|
-
};
|
|
964
|
-
export type ListWorkspaceAiCreditUsagesResponse = ListWorkspaceAiCreditUsagesResponses[keyof ListWorkspaceAiCreditUsagesResponses];
|
|
965
|
-
export type DeleteAiCreditUsageData = {
|
|
966
|
-
body?: never;
|
|
967
|
-
path: {
|
|
968
|
-
/**
|
|
969
|
-
* AICreditUsage ID (sqid)
|
|
970
|
-
*/
|
|
971
|
-
id: string;
|
|
972
|
-
};
|
|
973
|
-
query?: never;
|
|
974
|
-
url: '/api/ai-credit-usages/{id}';
|
|
975
|
-
};
|
|
976
|
-
export type DeleteAiCreditUsageErrors = {
|
|
977
|
-
/**
|
|
978
|
-
* Unauthenticated
|
|
979
|
-
*/
|
|
980
|
-
401: unknown;
|
|
981
|
-
/**
|
|
982
|
-
* Not found
|
|
983
|
-
*/
|
|
984
|
-
404: unknown;
|
|
985
|
-
};
|
|
986
|
-
export type DeleteAiCreditUsageResponses = {
|
|
987
|
-
/**
|
|
988
|
-
* Record deleted
|
|
989
|
-
*/
|
|
990
|
-
204: void;
|
|
991
|
-
};
|
|
992
|
-
export type DeleteAiCreditUsageResponse = DeleteAiCreditUsageResponses[keyof DeleteAiCreditUsageResponses];
|
|
993
|
-
export type GetAiCreditUsageData = {
|
|
994
|
-
body?: never;
|
|
995
|
-
path: {
|
|
996
|
-
/**
|
|
997
|
-
* AICreditUsage ID (sqid)
|
|
998
|
-
*/
|
|
999
|
-
id: string;
|
|
1000
|
-
};
|
|
1001
|
-
query?: never;
|
|
1002
|
-
url: '/api/ai-credit-usages/{id}';
|
|
1003
|
-
};
|
|
1004
|
-
export type GetAiCreditUsageErrors = {
|
|
1005
|
-
/**
|
|
1006
|
-
* Unauthenticated
|
|
1007
|
-
*/
|
|
1008
|
-
401: unknown;
|
|
1009
|
-
/**
|
|
1010
|
-
* Not found
|
|
1011
|
-
*/
|
|
1012
|
-
404: unknown;
|
|
1013
|
-
};
|
|
1014
|
-
export type GetAiCreditUsageResponses = {
|
|
1015
|
-
/**
|
|
1016
|
-
* Successful operation
|
|
1017
|
-
*/
|
|
1018
|
-
200: AiCreditUsage;
|
|
1019
|
-
};
|
|
1020
|
-
export type GetAiCreditUsageResponse = GetAiCreditUsageResponses[keyof GetAiCreditUsageResponses];
|
|
1021
|
-
export type UpdateAiCreditUsageData = {
|
|
1022
|
-
body: AiCreditUsageUpdateRequest;
|
|
1023
|
-
path: {
|
|
1024
|
-
/**
|
|
1025
|
-
* AICreditUsage ID (sqid)
|
|
1026
|
-
*/
|
|
1027
|
-
id: string;
|
|
1028
|
-
};
|
|
1029
|
-
query?: never;
|
|
1030
|
-
url: '/api/ai-credit-usages/{id}';
|
|
1031
|
-
};
|
|
1032
|
-
export type UpdateAiCreditUsageErrors = {
|
|
1033
|
-
/**
|
|
1034
|
-
* Unauthenticated
|
|
1035
|
-
*/
|
|
1036
|
-
401: unknown;
|
|
1037
|
-
/**
|
|
1038
|
-
* Not found
|
|
1039
|
-
*/
|
|
1040
|
-
404: unknown;
|
|
1041
|
-
/**
|
|
1042
|
-
* Validation error
|
|
1043
|
-
*/
|
|
1044
|
-
422: unknown;
|
|
1045
|
-
};
|
|
1046
|
-
export type UpdateAiCreditUsageResponses = {
|
|
1047
|
-
/**
|
|
1048
|
-
* Record updated
|
|
1049
|
-
*/
|
|
1050
|
-
200: AiCreditUsage;
|
|
1051
|
-
};
|
|
1052
|
-
export type UpdateAiCreditUsageResponse = UpdateAiCreditUsageResponses[keyof UpdateAiCreditUsageResponses];
|
|
1053
930
|
export type ListActivityLogsData = {
|
|
1054
931
|
body?: never;
|
|
1055
932
|
path?: never;
|
|
@@ -1190,188 +1067,34 @@ export type UpdateActivityLogResponses = {
|
|
|
1190
1067
|
200: ActivityLogs;
|
|
1191
1068
|
};
|
|
1192
1069
|
export type UpdateActivityLogResponse = UpdateActivityLogResponses[keyof UpdateActivityLogResponses];
|
|
1193
|
-
export type
|
|
1194
|
-
body
|
|
1195
|
-
path
|
|
1196
|
-
/**
|
|
1197
|
-
* Whiteboard ID (sqid)
|
|
1198
|
-
*/
|
|
1199
|
-
whiteboard: string;
|
|
1200
|
-
/**
|
|
1201
|
-
* Whiteboard Post ID (sqid)
|
|
1202
|
-
*/
|
|
1203
|
-
whiteboard_post: string;
|
|
1204
|
-
};
|
|
1070
|
+
export type ListApprovalRequestsData = {
|
|
1071
|
+
body?: never;
|
|
1072
|
+
path?: never;
|
|
1205
1073
|
query?: never;
|
|
1206
|
-
url: '/api/
|
|
1074
|
+
url: '/api/approval-requests';
|
|
1207
1075
|
};
|
|
1208
|
-
export type
|
|
1209
|
-
/**
|
|
1210
|
-
* Bad request
|
|
1211
|
-
*/
|
|
1212
|
-
400: unknown;
|
|
1213
|
-
/**
|
|
1214
|
-
* Unauthenticated
|
|
1215
|
-
*/
|
|
1216
|
-
401: unknown;
|
|
1217
|
-
/**
|
|
1218
|
-
* Forbidden
|
|
1219
|
-
*/
|
|
1220
|
-
403: unknown;
|
|
1076
|
+
export type ListApprovalRequestsResponses = {
|
|
1221
1077
|
/**
|
|
1222
|
-
*
|
|
1078
|
+
* List of approval requests
|
|
1223
1079
|
*/
|
|
1224
|
-
|
|
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 = {
|
|
1225
1090
|
/**
|
|
1226
1091
|
* Validation error
|
|
1227
1092
|
*/
|
|
1228
1093
|
422: unknown;
|
|
1229
|
-
/**
|
|
1230
|
-
* AI generation failed
|
|
1231
|
-
*/
|
|
1232
|
-
502: unknown;
|
|
1233
1094
|
};
|
|
1234
|
-
export type
|
|
1095
|
+
export type CreateApprovalRequestResponses = {
|
|
1235
1096
|
/**
|
|
1236
|
-
*
|
|
1237
|
-
*/
|
|
1238
|
-
200: {
|
|
1239
|
-
generated_content?: string;
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
export type GenerateWhiteboardPostContentFromPromptResponse = GenerateWhiteboardPostContentFromPromptResponses[keyof GenerateWhiteboardPostContentFromPromptResponses];
|
|
1243
|
-
export type ListApiKeysData = {
|
|
1244
|
-
body?: never;
|
|
1245
|
-
path?: never;
|
|
1246
|
-
query?: never;
|
|
1247
|
-
url: '/api/api-keys';
|
|
1248
|
-
};
|
|
1249
|
-
export type ListApiKeysResponses = {
|
|
1250
|
-
/**
|
|
1251
|
-
* List of API keys
|
|
1252
|
-
*/
|
|
1253
|
-
200: Array<ApiKeys>;
|
|
1254
|
-
};
|
|
1255
|
-
export type ListApiKeysResponse = ListApiKeysResponses[keyof ListApiKeysResponses];
|
|
1256
|
-
export type CreateApiKeyData = {
|
|
1257
|
-
body: ApiKeys;
|
|
1258
|
-
path?: never;
|
|
1259
|
-
query?: never;
|
|
1260
|
-
url: '/api/api-keys';
|
|
1261
|
-
};
|
|
1262
|
-
export type CreateApiKeyErrors = {
|
|
1263
|
-
/**
|
|
1264
|
-
* Validation error
|
|
1265
|
-
*/
|
|
1266
|
-
422: unknown;
|
|
1267
|
-
};
|
|
1268
|
-
export type CreateApiKeyResponses = {
|
|
1269
|
-
/**
|
|
1270
|
-
* API key created
|
|
1271
|
-
*/
|
|
1272
|
-
201: ApiKeys;
|
|
1273
|
-
};
|
|
1274
|
-
export type CreateApiKeyResponse = CreateApiKeyResponses[keyof CreateApiKeyResponses];
|
|
1275
|
-
export type DeleteApiKeyData = {
|
|
1276
|
-
body?: never;
|
|
1277
|
-
path: {
|
|
1278
|
-
/**
|
|
1279
|
-
* API key ID
|
|
1280
|
-
*/
|
|
1281
|
-
id: string;
|
|
1282
|
-
};
|
|
1283
|
-
query?: never;
|
|
1284
|
-
url: '/api/api-keys/{id}';
|
|
1285
|
-
};
|
|
1286
|
-
export type DeleteApiKeyErrors = {
|
|
1287
|
-
/**
|
|
1288
|
-
* Not found
|
|
1289
|
-
*/
|
|
1290
|
-
404: unknown;
|
|
1291
|
-
};
|
|
1292
|
-
export type DeleteApiKeyResponses = {
|
|
1293
|
-
/**
|
|
1294
|
-
* API key deleted
|
|
1295
|
-
*/
|
|
1296
|
-
204: void;
|
|
1297
|
-
};
|
|
1298
|
-
export type DeleteApiKeyResponse = DeleteApiKeyResponses[keyof DeleteApiKeyResponses];
|
|
1299
|
-
export type GetApiKeyData = {
|
|
1300
|
-
body?: never;
|
|
1301
|
-
path: {
|
|
1302
|
-
/**
|
|
1303
|
-
* API key ID
|
|
1304
|
-
*/
|
|
1305
|
-
id: string;
|
|
1306
|
-
};
|
|
1307
|
-
query?: never;
|
|
1308
|
-
url: '/api/api-keys/{id}';
|
|
1309
|
-
};
|
|
1310
|
-
export type GetApiKeyErrors = {
|
|
1311
|
-
/**
|
|
1312
|
-
* Not found
|
|
1313
|
-
*/
|
|
1314
|
-
404: unknown;
|
|
1315
|
-
};
|
|
1316
|
-
export type GetApiKeyResponses = {
|
|
1317
|
-
/**
|
|
1318
|
-
* API key details
|
|
1319
|
-
*/
|
|
1320
|
-
200: ApiKeys;
|
|
1321
|
-
};
|
|
1322
|
-
export type GetApiKeyResponse = GetApiKeyResponses[keyof GetApiKeyResponses];
|
|
1323
|
-
export type UpdateApiKeyData = {
|
|
1324
|
-
body: ApiKeys;
|
|
1325
|
-
path: {
|
|
1326
|
-
/**
|
|
1327
|
-
* API key ID
|
|
1328
|
-
*/
|
|
1329
|
-
id: string;
|
|
1330
|
-
};
|
|
1331
|
-
query?: never;
|
|
1332
|
-
url: '/api/api-keys/{id}';
|
|
1333
|
-
};
|
|
1334
|
-
export type UpdateApiKeyErrors = {
|
|
1335
|
-
/**
|
|
1336
|
-
* Not found
|
|
1337
|
-
*/
|
|
1338
|
-
404: unknown;
|
|
1339
|
-
};
|
|
1340
|
-
export type UpdateApiKeyResponses = {
|
|
1341
|
-
/**
|
|
1342
|
-
* API key updated
|
|
1343
|
-
*/
|
|
1344
|
-
200: ApiKeys;
|
|
1345
|
-
};
|
|
1346
|
-
export type UpdateApiKeyResponse = UpdateApiKeyResponses[keyof UpdateApiKeyResponses];
|
|
1347
|
-
export type ListApprovalRequestsData = {
|
|
1348
|
-
body?: never;
|
|
1349
|
-
path?: never;
|
|
1350
|
-
query?: never;
|
|
1351
|
-
url: '/api/approval-requests';
|
|
1352
|
-
};
|
|
1353
|
-
export type ListApprovalRequestsResponses = {
|
|
1354
|
-
/**
|
|
1355
|
-
* List of approval requests
|
|
1356
|
-
*/
|
|
1357
|
-
200: Array<ApprovalRequests>;
|
|
1358
|
-
};
|
|
1359
|
-
export type ListApprovalRequestsResponse = ListApprovalRequestsResponses[keyof ListApprovalRequestsResponses];
|
|
1360
|
-
export type CreateApprovalRequestData = {
|
|
1361
|
-
body: ApprovalRequests;
|
|
1362
|
-
path?: never;
|
|
1363
|
-
query?: never;
|
|
1364
|
-
url: '/api/approval-requests';
|
|
1365
|
-
};
|
|
1366
|
-
export type CreateApprovalRequestErrors = {
|
|
1367
|
-
/**
|
|
1368
|
-
* Validation error
|
|
1369
|
-
*/
|
|
1370
|
-
422: unknown;
|
|
1371
|
-
};
|
|
1372
|
-
export type CreateApprovalRequestResponses = {
|
|
1373
|
-
/**
|
|
1374
|
-
* Approval request created
|
|
1097
|
+
* Approval request created
|
|
1375
1098
|
*/
|
|
1376
1099
|
201: ApprovalRequests;
|
|
1377
1100
|
};
|
|
@@ -1463,45 +1186,6 @@ export type UpdateApprovalRequestResponses = {
|
|
|
1463
1186
|
200: ApprovalRequests;
|
|
1464
1187
|
};
|
|
1465
1188
|
export type UpdateApprovalRequestResponse = UpdateApprovalRequestResponses[keyof UpdateApprovalRequestResponses];
|
|
1466
|
-
export type RegisterUserData = {
|
|
1467
|
-
body: {
|
|
1468
|
-
name: string;
|
|
1469
|
-
email: string;
|
|
1470
|
-
password: string;
|
|
1471
|
-
/**
|
|
1472
|
-
* Required when registering without an invite token
|
|
1473
|
-
*/
|
|
1474
|
-
workspace_name?: string;
|
|
1475
|
-
/**
|
|
1476
|
-
* Optional invitation token for joining an existing workspace
|
|
1477
|
-
*/
|
|
1478
|
-
invite_token?: string | null;
|
|
1479
|
-
};
|
|
1480
|
-
path?: never;
|
|
1481
|
-
query?: never;
|
|
1482
|
-
url: '/api/auth/register';
|
|
1483
|
-
};
|
|
1484
|
-
export type RegisterUserErrors = {
|
|
1485
|
-
/**
|
|
1486
|
-
* Validation error
|
|
1487
|
-
*/
|
|
1488
|
-
422: unknown;
|
|
1489
|
-
};
|
|
1490
|
-
export type RegisterUserResponses = {
|
|
1491
|
-
/**
|
|
1492
|
-
* User successfully registered
|
|
1493
|
-
*/
|
|
1494
|
-
201: {
|
|
1495
|
-
message?: string;
|
|
1496
|
-
user?: {
|
|
1497
|
-
id?: number;
|
|
1498
|
-
name?: string;
|
|
1499
|
-
email?: string;
|
|
1500
|
-
workspace_name?: string;
|
|
1501
|
-
};
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
export type RegisterUserResponse = RegisterUserResponses[keyof RegisterUserResponses];
|
|
1505
1189
|
export type LoginUserData = {
|
|
1506
1190
|
body: {
|
|
1507
1191
|
email: string;
|
|
@@ -1576,369 +1260,151 @@ export type LogoutUserResponses = {
|
|
|
1576
1260
|
};
|
|
1577
1261
|
};
|
|
1578
1262
|
export type LogoutUserResponse = LogoutUserResponses[keyof LogoutUserResponses];
|
|
1579
|
-
export type
|
|
1263
|
+
export type GetBrandAssetsData = {
|
|
1580
1264
|
body?: never;
|
|
1581
|
-
path
|
|
1265
|
+
path: {
|
|
1266
|
+
/**
|
|
1267
|
+
* Brand ID (sqid)
|
|
1268
|
+
*/
|
|
1269
|
+
brand: string;
|
|
1270
|
+
};
|
|
1582
1271
|
query?: never;
|
|
1583
|
-
url: '/api/
|
|
1272
|
+
url: '/api/brands/{brand}/assets';
|
|
1584
1273
|
};
|
|
1585
|
-
export type
|
|
1274
|
+
export type GetBrandAssetsErrors = {
|
|
1586
1275
|
/**
|
|
1587
|
-
*
|
|
1276
|
+
* Forbidden - Brand belongs to different workspace
|
|
1588
1277
|
*/
|
|
1589
|
-
|
|
1278
|
+
403: unknown;
|
|
1590
1279
|
};
|
|
1591
|
-
export type
|
|
1280
|
+
export type GetBrandAssetsResponses = {
|
|
1592
1281
|
/**
|
|
1593
|
-
*
|
|
1282
|
+
* Brand assets retrieved
|
|
1594
1283
|
*/
|
|
1595
|
-
200:
|
|
1596
|
-
access_token?: string;
|
|
1597
|
-
token_type?: string;
|
|
1598
|
-
expires_in?: number;
|
|
1599
|
-
};
|
|
1284
|
+
200: BrandAsset;
|
|
1600
1285
|
};
|
|
1601
|
-
export type
|
|
1602
|
-
export type
|
|
1603
|
-
body:
|
|
1286
|
+
export type GetBrandAssetsResponse = GetBrandAssetsResponses[keyof GetBrandAssetsResponses];
|
|
1287
|
+
export type UpdateBrandAssetsData = {
|
|
1288
|
+
body: BrandAssetUpdateRequest;
|
|
1289
|
+
path: {
|
|
1604
1290
|
/**
|
|
1605
|
-
*
|
|
1291
|
+
* Brand ID (sqid)
|
|
1606
1292
|
*/
|
|
1607
|
-
|
|
1293
|
+
brand: string;
|
|
1608
1294
|
};
|
|
1609
|
-
path?: never;
|
|
1610
1295
|
query?: never;
|
|
1611
|
-
url: '/api/
|
|
1296
|
+
url: '/api/brands/{brand}/assets';
|
|
1612
1297
|
};
|
|
1613
|
-
export type
|
|
1298
|
+
export type UpdateBrandAssetsErrors = {
|
|
1614
1299
|
/**
|
|
1615
|
-
*
|
|
1300
|
+
* Forbidden - Brand belongs to different workspace
|
|
1616
1301
|
*/
|
|
1617
|
-
|
|
1618
|
-
message?: string;
|
|
1619
|
-
};
|
|
1302
|
+
403: unknown;
|
|
1620
1303
|
/**
|
|
1621
1304
|
* Validation error
|
|
1622
1305
|
*/
|
|
1623
|
-
422:
|
|
1624
|
-
message?: string;
|
|
1625
|
-
errors?: {
|
|
1626
|
-
[key: string]: unknown;
|
|
1627
|
-
};
|
|
1628
|
-
};
|
|
1306
|
+
422: unknown;
|
|
1629
1307
|
};
|
|
1630
|
-
export type
|
|
1631
|
-
export type SendResetLinkEmailResponses = {
|
|
1308
|
+
export type UpdateBrandAssetsResponses = {
|
|
1632
1309
|
/**
|
|
1633
|
-
*
|
|
1310
|
+
* Brand assets updated
|
|
1634
1311
|
*/
|
|
1635
|
-
200:
|
|
1636
|
-
message?: string;
|
|
1637
|
-
};
|
|
1312
|
+
200: BrandAsset;
|
|
1638
1313
|
};
|
|
1639
|
-
export type
|
|
1640
|
-
export type
|
|
1641
|
-
body
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1314
|
+
export type UpdateBrandAssetsResponse = UpdateBrandAssetsResponses[keyof UpdateBrandAssetsResponses];
|
|
1315
|
+
export type ListBrandChannelsData = {
|
|
1316
|
+
body?: never;
|
|
1317
|
+
path: {
|
|
1318
|
+
/**
|
|
1319
|
+
* Brand ID (sqid)
|
|
1320
|
+
*/
|
|
1321
|
+
brand: string;
|
|
1646
1322
|
};
|
|
1647
|
-
path?: never;
|
|
1648
1323
|
query?: never;
|
|
1649
|
-
url: '/api/
|
|
1324
|
+
url: '/api/brands/{brand}/channels';
|
|
1650
1325
|
};
|
|
1651
|
-
export type
|
|
1326
|
+
export type ListBrandChannelsErrors = {
|
|
1652
1327
|
/**
|
|
1653
|
-
*
|
|
1328
|
+
* Forbidden - Brand belongs to different workspace
|
|
1654
1329
|
*/
|
|
1655
|
-
|
|
1656
|
-
error?: string;
|
|
1657
|
-
};
|
|
1330
|
+
403: unknown;
|
|
1658
1331
|
};
|
|
1659
|
-
export type
|
|
1660
|
-
export type ResetPasswordResponses = {
|
|
1332
|
+
export type ListBrandChannelsResponses = {
|
|
1661
1333
|
/**
|
|
1662
|
-
*
|
|
1334
|
+
* List of brand channels
|
|
1663
1335
|
*/
|
|
1664
|
-
200:
|
|
1665
|
-
message?: string;
|
|
1666
|
-
};
|
|
1336
|
+
200: Array<BrandChannel>;
|
|
1667
1337
|
};
|
|
1668
|
-
export type
|
|
1669
|
-
export type
|
|
1670
|
-
body
|
|
1671
|
-
path
|
|
1338
|
+
export type ListBrandChannelsResponse = ListBrandChannelsResponses[keyof ListBrandChannelsResponses];
|
|
1339
|
+
export type SyncBrandChannelsData = {
|
|
1340
|
+
body: BrandChannelUpdateRequest;
|
|
1341
|
+
path: {
|
|
1342
|
+
/**
|
|
1343
|
+
* Brand ID (sqid)
|
|
1344
|
+
*/
|
|
1345
|
+
brand: string;
|
|
1346
|
+
};
|
|
1672
1347
|
query?: never;
|
|
1673
|
-
url: '/api/
|
|
1348
|
+
url: '/api/brands/{brand}/channels';
|
|
1674
1349
|
};
|
|
1675
|
-
export type
|
|
1350
|
+
export type SyncBrandChannelsErrors = {
|
|
1676
1351
|
/**
|
|
1677
|
-
*
|
|
1352
|
+
* Forbidden - Brand belongs to different workspace
|
|
1678
1353
|
*/
|
|
1679
|
-
|
|
1354
|
+
403: unknown;
|
|
1680
1355
|
/**
|
|
1681
|
-
*
|
|
1356
|
+
* Validation error
|
|
1682
1357
|
*/
|
|
1683
|
-
|
|
1358
|
+
422: unknown;
|
|
1684
1359
|
};
|
|
1685
|
-
export type
|
|
1360
|
+
export type SyncBrandChannelsResponses = {
|
|
1686
1361
|
/**
|
|
1687
|
-
*
|
|
1362
|
+
* Brand channels synced
|
|
1688
1363
|
*/
|
|
1689
|
-
200:
|
|
1690
|
-
success?: boolean;
|
|
1691
|
-
};
|
|
1364
|
+
200: Array<BrandChannel>;
|
|
1692
1365
|
};
|
|
1693
|
-
export type
|
|
1694
|
-
export type
|
|
1366
|
+
export type SyncBrandChannelsResponse = SyncBrandChannelsResponses[keyof SyncBrandChannelsResponses];
|
|
1367
|
+
export type ListBrandsData = {
|
|
1695
1368
|
body?: never;
|
|
1696
1369
|
path?: never;
|
|
1697
1370
|
query?: never;
|
|
1698
|
-
url: '/api/
|
|
1371
|
+
url: '/api/brands';
|
|
1699
1372
|
};
|
|
1700
|
-
export type
|
|
1701
|
-
/**
|
|
1702
|
-
* Unauthenticated
|
|
1703
|
-
*/
|
|
1704
|
-
401: unknown;
|
|
1705
|
-
/**
|
|
1706
|
-
* User is not the workspace owner
|
|
1707
|
-
*/
|
|
1708
|
-
403: unknown;
|
|
1373
|
+
export type ListBrandsErrors = {
|
|
1709
1374
|
/**
|
|
1710
|
-
*
|
|
1375
|
+
* User does not have an active workspace
|
|
1711
1376
|
*/
|
|
1712
1377
|
422: {
|
|
1713
|
-
|
|
1714
|
-
errors?: {
|
|
1715
|
-
plan?: Array<string>;
|
|
1716
|
-
};
|
|
1378
|
+
error?: string;
|
|
1717
1379
|
};
|
|
1718
1380
|
};
|
|
1719
|
-
export type
|
|
1720
|
-
export type
|
|
1381
|
+
export type ListBrandsError = ListBrandsErrors[keyof ListBrandsErrors];
|
|
1382
|
+
export type ListBrandsResponses = {
|
|
1721
1383
|
/**
|
|
1722
|
-
*
|
|
1384
|
+
* List of brands
|
|
1723
1385
|
*/
|
|
1724
|
-
200:
|
|
1386
|
+
200: Array<Brands>;
|
|
1725
1387
|
};
|
|
1726
|
-
export type
|
|
1727
|
-
export type
|
|
1728
|
-
body
|
|
1388
|
+
export type ListBrandsResponse = ListBrandsResponses[keyof ListBrandsResponses];
|
|
1389
|
+
export type CreateBrandData = {
|
|
1390
|
+
body: {
|
|
1391
|
+
company_id: string;
|
|
1392
|
+
name?: string;
|
|
1393
|
+
email: string;
|
|
1394
|
+
address?: string | null;
|
|
1395
|
+
city?: string | null;
|
|
1396
|
+
telephone?: string | null;
|
|
1397
|
+
website?: string | null;
|
|
1398
|
+
contact?: string | null;
|
|
1399
|
+
notes?: string | null;
|
|
1400
|
+
selected_country?: string | null;
|
|
1401
|
+
selected_industry?: string | null;
|
|
1402
|
+
};
|
|
1729
1403
|
path?: never;
|
|
1730
1404
|
query?: never;
|
|
1731
|
-
url: '/api/
|
|
1405
|
+
url: '/api/brands';
|
|
1732
1406
|
};
|
|
1733
|
-
export type
|
|
1734
|
-
/**
|
|
1735
|
-
* Unauthenticated
|
|
1736
|
-
*/
|
|
1737
|
-
401: unknown;
|
|
1738
|
-
/**
|
|
1739
|
-
* User is not the workspace owner
|
|
1740
|
-
*/
|
|
1741
|
-
403: unknown;
|
|
1742
|
-
/**
|
|
1743
|
-
* No active subscription
|
|
1744
|
-
*/
|
|
1745
|
-
422: {
|
|
1746
|
-
message?: string;
|
|
1747
|
-
errors?: {
|
|
1748
|
-
plan?: Array<string>;
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
};
|
|
1752
|
-
export type CancelSubscriptionError = CancelSubscriptionErrors[keyof CancelSubscriptionErrors];
|
|
1753
|
-
export type CancelSubscriptionResponses = {
|
|
1754
|
-
/**
|
|
1755
|
-
* Subscription cancelled
|
|
1756
|
-
*/
|
|
1757
|
-
200: {
|
|
1758
|
-
message?: string;
|
|
1759
|
-
};
|
|
1760
|
-
};
|
|
1761
|
-
export type CancelSubscriptionResponse = CancelSubscriptionResponses[keyof CancelSubscriptionResponses];
|
|
1762
|
-
export type SelectPlanData = {
|
|
1763
|
-
body: SelectPlanRequest;
|
|
1764
|
-
path?: never;
|
|
1765
|
-
query?: never;
|
|
1766
|
-
url: '/api/billing/get_plan';
|
|
1767
|
-
};
|
|
1768
|
-
export type SelectPlanErrors = {
|
|
1769
|
-
/**
|
|
1770
|
-
* Unauthenticated
|
|
1771
|
-
*/
|
|
1772
|
-
401: unknown;
|
|
1773
|
-
/**
|
|
1774
|
-
* User is not the workspace owner
|
|
1775
|
-
*/
|
|
1776
|
-
403: unknown;
|
|
1777
|
-
/**
|
|
1778
|
-
* Validation error or same plan selected
|
|
1779
|
-
*/
|
|
1780
|
-
422: {
|
|
1781
|
-
message?: string;
|
|
1782
|
-
errors?: {
|
|
1783
|
-
plan?: Array<string>;
|
|
1784
|
-
};
|
|
1785
|
-
};
|
|
1786
|
-
};
|
|
1787
|
-
export type SelectPlanError = SelectPlanErrors[keyof SelectPlanErrors];
|
|
1788
|
-
export type SelectPlanResponses = {
|
|
1789
|
-
/**
|
|
1790
|
-
* Checkout URL or plan switch confirmation
|
|
1791
|
-
*/
|
|
1792
|
-
200: string | {
|
|
1793
|
-
message?: string;
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
export type SelectPlanResponse = SelectPlanResponses[keyof SelectPlanResponses];
|
|
1797
|
-
export type GetBrandAssetsData = {
|
|
1798
|
-
body?: never;
|
|
1799
|
-
path: {
|
|
1800
|
-
/**
|
|
1801
|
-
* Brand ID (sqid)
|
|
1802
|
-
*/
|
|
1803
|
-
brand: string;
|
|
1804
|
-
};
|
|
1805
|
-
query?: never;
|
|
1806
|
-
url: '/api/brands/{brand}/assets';
|
|
1807
|
-
};
|
|
1808
|
-
export type GetBrandAssetsErrors = {
|
|
1809
|
-
/**
|
|
1810
|
-
* Forbidden - Brand belongs to different workspace
|
|
1811
|
-
*/
|
|
1812
|
-
403: unknown;
|
|
1813
|
-
};
|
|
1814
|
-
export type GetBrandAssetsResponses = {
|
|
1815
|
-
/**
|
|
1816
|
-
* Brand assets retrieved
|
|
1817
|
-
*/
|
|
1818
|
-
200: BrandAsset;
|
|
1819
|
-
};
|
|
1820
|
-
export type GetBrandAssetsResponse = GetBrandAssetsResponses[keyof GetBrandAssetsResponses];
|
|
1821
|
-
export type UpdateBrandAssetsData = {
|
|
1822
|
-
body: BrandAssetUpdateRequest;
|
|
1823
|
-
path: {
|
|
1824
|
-
/**
|
|
1825
|
-
* Brand ID (sqid)
|
|
1826
|
-
*/
|
|
1827
|
-
brand: string;
|
|
1828
|
-
};
|
|
1829
|
-
query?: never;
|
|
1830
|
-
url: '/api/brands/{brand}/assets';
|
|
1831
|
-
};
|
|
1832
|
-
export type UpdateBrandAssetsErrors = {
|
|
1833
|
-
/**
|
|
1834
|
-
* Forbidden - Brand belongs to different workspace
|
|
1835
|
-
*/
|
|
1836
|
-
403: unknown;
|
|
1837
|
-
/**
|
|
1838
|
-
* Validation error
|
|
1839
|
-
*/
|
|
1840
|
-
422: unknown;
|
|
1841
|
-
};
|
|
1842
|
-
export type UpdateBrandAssetsResponses = {
|
|
1843
|
-
/**
|
|
1844
|
-
* Brand assets updated
|
|
1845
|
-
*/
|
|
1846
|
-
200: BrandAsset;
|
|
1847
|
-
};
|
|
1848
|
-
export type UpdateBrandAssetsResponse = UpdateBrandAssetsResponses[keyof UpdateBrandAssetsResponses];
|
|
1849
|
-
export type ListBrandChannelsData = {
|
|
1850
|
-
body?: never;
|
|
1851
|
-
path: {
|
|
1852
|
-
/**
|
|
1853
|
-
* Brand ID (sqid)
|
|
1854
|
-
*/
|
|
1855
|
-
brand: string;
|
|
1856
|
-
};
|
|
1857
|
-
query?: never;
|
|
1858
|
-
url: '/api/brands/{brand}/channels';
|
|
1859
|
-
};
|
|
1860
|
-
export type ListBrandChannelsErrors = {
|
|
1861
|
-
/**
|
|
1862
|
-
* Forbidden - Brand belongs to different workspace
|
|
1863
|
-
*/
|
|
1864
|
-
403: unknown;
|
|
1865
|
-
};
|
|
1866
|
-
export type ListBrandChannelsResponses = {
|
|
1867
|
-
/**
|
|
1868
|
-
* List of brand channels
|
|
1869
|
-
*/
|
|
1870
|
-
200: Array<BrandChannel>;
|
|
1871
|
-
};
|
|
1872
|
-
export type ListBrandChannelsResponse = ListBrandChannelsResponses[keyof ListBrandChannelsResponses];
|
|
1873
|
-
export type SyncBrandChannelsData = {
|
|
1874
|
-
body: BrandChannelUpdateRequest;
|
|
1875
|
-
path: {
|
|
1876
|
-
/**
|
|
1877
|
-
* Brand ID (sqid)
|
|
1878
|
-
*/
|
|
1879
|
-
brand: string;
|
|
1880
|
-
};
|
|
1881
|
-
query?: never;
|
|
1882
|
-
url: '/api/brands/{brand}/channels';
|
|
1883
|
-
};
|
|
1884
|
-
export type SyncBrandChannelsErrors = {
|
|
1885
|
-
/**
|
|
1886
|
-
* Forbidden - Brand belongs to different workspace
|
|
1887
|
-
*/
|
|
1888
|
-
403: unknown;
|
|
1889
|
-
/**
|
|
1890
|
-
* Validation error
|
|
1891
|
-
*/
|
|
1892
|
-
422: unknown;
|
|
1893
|
-
};
|
|
1894
|
-
export type SyncBrandChannelsResponses = {
|
|
1895
|
-
/**
|
|
1896
|
-
* Brand channels synced
|
|
1897
|
-
*/
|
|
1898
|
-
200: Array<BrandChannel>;
|
|
1899
|
-
};
|
|
1900
|
-
export type SyncBrandChannelsResponse = SyncBrandChannelsResponses[keyof SyncBrandChannelsResponses];
|
|
1901
|
-
export type ListBrandsData = {
|
|
1902
|
-
body?: never;
|
|
1903
|
-
path?: never;
|
|
1904
|
-
query?: never;
|
|
1905
|
-
url: '/api/brands';
|
|
1906
|
-
};
|
|
1907
|
-
export type ListBrandsErrors = {
|
|
1908
|
-
/**
|
|
1909
|
-
* User does not have an active workspace
|
|
1910
|
-
*/
|
|
1911
|
-
422: {
|
|
1912
|
-
error?: string;
|
|
1913
|
-
};
|
|
1914
|
-
};
|
|
1915
|
-
export type ListBrandsError = ListBrandsErrors[keyof ListBrandsErrors];
|
|
1916
|
-
export type ListBrandsResponses = {
|
|
1917
|
-
/**
|
|
1918
|
-
* List of brands
|
|
1919
|
-
*/
|
|
1920
|
-
200: Array<Brands>;
|
|
1921
|
-
};
|
|
1922
|
-
export type ListBrandsResponse = ListBrandsResponses[keyof ListBrandsResponses];
|
|
1923
|
-
export type CreateBrandData = {
|
|
1924
|
-
body: {
|
|
1925
|
-
company_id: string;
|
|
1926
|
-
name?: string;
|
|
1927
|
-
email: string;
|
|
1928
|
-
address?: string | null;
|
|
1929
|
-
city?: string | null;
|
|
1930
|
-
telephone?: string | null;
|
|
1931
|
-
website?: string | null;
|
|
1932
|
-
contact?: string | null;
|
|
1933
|
-
notes?: string | null;
|
|
1934
|
-
selected_country?: string | null;
|
|
1935
|
-
selected_industry?: string | null;
|
|
1936
|
-
};
|
|
1937
|
-
path?: never;
|
|
1938
|
-
query?: never;
|
|
1939
|
-
url: '/api/brands';
|
|
1940
|
-
};
|
|
1941
|
-
export type CreateBrandErrors = {
|
|
1407
|
+
export type CreateBrandErrors = {
|
|
1942
1408
|
/**
|
|
1943
1409
|
* Validation error or no active workspace
|
|
1944
1410
|
*/
|
|
@@ -2472,1243 +1938,126 @@ export type UpdateCompanyErrors = {
|
|
|
2472
1938
|
};
|
|
2473
1939
|
export type UpdateCompanyResponses = {
|
|
2474
1940
|
/**
|
|
2475
|
-
* Company updated
|
|
2476
|
-
*/
|
|
2477
|
-
200: Companies;
|
|
2478
|
-
};
|
|
2479
|
-
export type UpdateCompanyResponse = UpdateCompanyResponses[keyof UpdateCompanyResponses];
|
|
2480
|
-
export type ListConnectorsData = {
|
|
2481
|
-
body?: never;
|
|
2482
|
-
path?: never;
|
|
2483
|
-
query?: {
|
|
2484
|
-
/**
|
|
2485
|
-
* Filter by verification status
|
|
2486
|
-
*/
|
|
2487
|
-
verified?: boolean;
|
|
2488
|
-
/**
|
|
2489
|
-
* Filter by featured status
|
|
2490
|
-
*/
|
|
2491
|
-
featured?: boolean;
|
|
2492
|
-
/**
|
|
2493
|
-
* Filter by pricing model
|
|
2494
|
-
*/
|
|
2495
|
-
pricing_model?: string;
|
|
2496
|
-
};
|
|
2497
|
-
url: '/api/connectors';
|
|
2498
|
-
};
|
|
2499
|
-
export type ListConnectorsErrors = {
|
|
2500
|
-
/**
|
|
2501
|
-
* No active workspace set
|
|
2502
|
-
*/
|
|
2503
|
-
422: {
|
|
2504
|
-
error?: string;
|
|
2505
|
-
};
|
|
2506
|
-
};
|
|
2507
|
-
export type ListConnectorsError = ListConnectorsErrors[keyof ListConnectorsErrors];
|
|
2508
|
-
export type ListConnectorsResponses = {
|
|
2509
|
-
/**
|
|
2510
|
-
* List of connectors
|
|
2511
|
-
*/
|
|
2512
|
-
200: Array<Connector>;
|
|
2513
|
-
};
|
|
2514
|
-
export type ListConnectorsResponse = ListConnectorsResponses[keyof ListConnectorsResponses];
|
|
2515
|
-
export type ListConnectorInstallationsData = {
|
|
2516
|
-
body?: never;
|
|
2517
|
-
path?: never;
|
|
2518
|
-
query?: {
|
|
2519
|
-
/**
|
|
2520
|
-
* Filter by installation status
|
|
2521
|
-
*/
|
|
2522
|
-
status?: ConnectorInstallationStatus;
|
|
2523
|
-
};
|
|
2524
|
-
url: '/api/connector-installations';
|
|
2525
|
-
};
|
|
2526
|
-
export type ListConnectorInstallationsErrors = {
|
|
2527
|
-
/**
|
|
2528
|
-
* No active workspace set
|
|
2529
|
-
*/
|
|
2530
|
-
422: {
|
|
2531
|
-
error?: string;
|
|
2532
|
-
};
|
|
2533
|
-
};
|
|
2534
|
-
export type ListConnectorInstallationsError = ListConnectorInstallationsErrors[keyof ListConnectorInstallationsErrors];
|
|
2535
|
-
export type ListConnectorInstallationsResponses = {
|
|
2536
|
-
/**
|
|
2537
|
-
* List of connector installations
|
|
2538
|
-
*/
|
|
2539
|
-
200: Array<ConnectorInstallation>;
|
|
2540
|
-
};
|
|
2541
|
-
export type ListConnectorInstallationsResponse = ListConnectorInstallationsResponses[keyof ListConnectorInstallationsResponses];
|
|
2542
|
-
export type CreateConnectorInstallationData = {
|
|
2543
|
-
body: ConnectorInstallationStoreRequest;
|
|
2544
|
-
path?: never;
|
|
2545
|
-
query?: never;
|
|
2546
|
-
url: '/api/connector-installations';
|
|
2547
|
-
};
|
|
2548
|
-
export type CreateConnectorInstallationErrors = {
|
|
2549
|
-
/**
|
|
2550
|
-
* Connector already installed in this workspace
|
|
2551
|
-
*/
|
|
2552
|
-
400: {
|
|
2553
|
-
error?: string;
|
|
2554
|
-
};
|
|
2555
|
-
/**
|
|
2556
|
-
* Validation error or no active workspace
|
|
2557
|
-
*/
|
|
2558
|
-
422: {
|
|
2559
|
-
message?: string;
|
|
2560
|
-
errors?: {
|
|
2561
|
-
connector_id?: Array<string>;
|
|
2562
|
-
};
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
|
-
export type CreateConnectorInstallationError = CreateConnectorInstallationErrors[keyof CreateConnectorInstallationErrors];
|
|
2566
|
-
export type CreateConnectorInstallationResponses = {
|
|
2567
|
-
/**
|
|
2568
|
-
* Connector installation created
|
|
2569
|
-
*/
|
|
2570
|
-
201: ConnectorInstallation;
|
|
2571
|
-
};
|
|
2572
|
-
export type CreateConnectorInstallationResponse = CreateConnectorInstallationResponses[keyof CreateConnectorInstallationResponses];
|
|
2573
|
-
export type DeleteConnectorInstallationData = {
|
|
2574
|
-
body?: never;
|
|
2575
|
-
path: {
|
|
2576
|
-
/**
|
|
2577
|
-
* Connector installation ID
|
|
2578
|
-
*/
|
|
2579
|
-
id: string;
|
|
2580
|
-
};
|
|
2581
|
-
query?: never;
|
|
2582
|
-
url: '/api/connector-installations/{id}';
|
|
2583
|
-
};
|
|
2584
|
-
export type DeleteConnectorInstallationErrors = {
|
|
2585
|
-
/**
|
|
2586
|
-
* Not found
|
|
2587
|
-
*/
|
|
2588
|
-
404: unknown;
|
|
2589
|
-
};
|
|
2590
|
-
export type DeleteConnectorInstallationResponses = {
|
|
2591
|
-
/**
|
|
2592
|
-
* Connector installation deleted
|
|
2593
|
-
*/
|
|
2594
|
-
204: void;
|
|
2595
|
-
};
|
|
2596
|
-
export type DeleteConnectorInstallationResponse = DeleteConnectorInstallationResponses[keyof DeleteConnectorInstallationResponses];
|
|
2597
|
-
export type UpdateConnectorInstallationData = {
|
|
2598
|
-
body: ConnectorInstallationUpdateRequest;
|
|
2599
|
-
path: {
|
|
2600
|
-
/**
|
|
2601
|
-
* Connector installation ID
|
|
2602
|
-
*/
|
|
2603
|
-
id: string;
|
|
2604
|
-
};
|
|
2605
|
-
query?: never;
|
|
2606
|
-
url: '/api/connector-installations/{id}';
|
|
2607
|
-
};
|
|
2608
|
-
export type UpdateConnectorInstallationErrors = {
|
|
2609
|
-
/**
|
|
2610
|
-
* Not found
|
|
2611
|
-
*/
|
|
2612
|
-
404: unknown;
|
|
2613
|
-
/**
|
|
2614
|
-
* Validation error
|
|
2615
|
-
*/
|
|
2616
|
-
422: {
|
|
2617
|
-
message?: string;
|
|
2618
|
-
errors?: {
|
|
2619
|
-
connector_id?: Array<string>;
|
|
2620
|
-
};
|
|
2621
|
-
};
|
|
2622
|
-
};
|
|
2623
|
-
export type UpdateConnectorInstallationError = UpdateConnectorInstallationErrors[keyof UpdateConnectorInstallationErrors];
|
|
2624
|
-
export type UpdateConnectorInstallationResponses = {
|
|
2625
|
-
/**
|
|
2626
|
-
* Connector installation updated
|
|
2627
|
-
*/
|
|
2628
|
-
200: ConnectorInstallation;
|
|
2629
|
-
};
|
|
2630
|
-
export type UpdateConnectorInstallationResponse = UpdateConnectorInstallationResponses[keyof UpdateConnectorInstallationResponses];
|
|
2631
|
-
export type CrawlUrlData = {
|
|
2632
|
-
body: CrawlUrlRequest;
|
|
2633
|
-
path?: never;
|
|
2634
|
-
query?: never;
|
|
2635
|
-
url: '/api/jobs/crawl-page';
|
|
2636
|
-
};
|
|
2637
|
-
export type CrawlUrlErrors = {
|
|
2638
|
-
/**
|
|
2639
|
-
* Unauthenticated
|
|
2640
|
-
*/
|
|
2641
|
-
401: unknown;
|
|
2642
|
-
/**
|
|
2643
|
-
* Validation error
|
|
2644
|
-
*/
|
|
2645
|
-
422: unknown;
|
|
2646
|
-
};
|
|
2647
|
-
export type CrawlUrlResponses = {
|
|
2648
|
-
/**
|
|
2649
|
-
* Crawl job dispatched successfully
|
|
2650
|
-
*/
|
|
2651
|
-
200: unknown;
|
|
2652
|
-
};
|
|
2653
|
-
export type GetExternalCurrentUserData = {
|
|
2654
|
-
body?: never;
|
|
2655
|
-
path?: never;
|
|
2656
|
-
query?: never;
|
|
2657
|
-
url: '/api/external/me';
|
|
2658
|
-
};
|
|
2659
|
-
export type GetExternalCurrentUserErrors = {
|
|
2660
|
-
/**
|
|
2661
|
-
* Invalid or missing token
|
|
2662
|
-
*/
|
|
2663
|
-
403: unknown;
|
|
2664
|
-
};
|
|
2665
|
-
export type GetExternalCurrentUserResponses = {
|
|
2666
|
-
/**
|
|
2667
|
-
* Current external user
|
|
2668
|
-
*/
|
|
2669
|
-
200: WhiteboardPreviewPublicUser;
|
|
2670
|
-
};
|
|
2671
|
-
export type GetExternalCurrentUserResponse = GetExternalCurrentUserResponses[keyof GetExternalCurrentUserResponses];
|
|
2672
|
-
export type ListWhiteboardPreviewCommentsData = {
|
|
2673
|
-
body?: never;
|
|
2674
|
-
path: {
|
|
2675
|
-
/**
|
|
2676
|
-
* Whiteboard Preview ID
|
|
2677
|
-
*/
|
|
2678
|
-
whiteboard_preview: string;
|
|
2679
|
-
};
|
|
2680
|
-
query?: {
|
|
2681
|
-
/**
|
|
2682
|
-
* Filter comments by commenter source
|
|
2683
|
-
*/
|
|
2684
|
-
commenter_source?: 'all' | 'internal' | 'external' | 'mine';
|
|
2685
|
-
/**
|
|
2686
|
-
* Include comments from all posts within this preview
|
|
2687
|
-
*/
|
|
2688
|
-
include_posts?: boolean;
|
|
2689
|
-
};
|
|
2690
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments';
|
|
2691
|
-
};
|
|
2692
|
-
export type ListWhiteboardPreviewCommentsErrors = {
|
|
2693
|
-
/**
|
|
2694
|
-
* Forbidden - No access to this preview
|
|
2695
|
-
*/
|
|
2696
|
-
403: unknown;
|
|
2697
|
-
/**
|
|
2698
|
-
* Not found
|
|
2699
|
-
*/
|
|
2700
|
-
404: unknown;
|
|
2701
|
-
};
|
|
2702
|
-
export type ListWhiteboardPreviewCommentsResponses = {
|
|
2703
|
-
/**
|
|
2704
|
-
* List of comments
|
|
2705
|
-
*/
|
|
2706
|
-
200: Array<Comments>;
|
|
2707
|
-
};
|
|
2708
|
-
export type ListWhiteboardPreviewCommentsResponse = ListWhiteboardPreviewCommentsResponses[keyof ListWhiteboardPreviewCommentsResponses];
|
|
2709
|
-
export type CreateWhiteboardPreviewCommentData = {
|
|
2710
|
-
body: WhiteboardPreviewCommentStoreRequest;
|
|
2711
|
-
path: {
|
|
2712
|
-
/**
|
|
2713
|
-
* Whiteboard Preview ID
|
|
2714
|
-
*/
|
|
2715
|
-
whiteboard_preview: string;
|
|
2716
|
-
};
|
|
2717
|
-
query?: never;
|
|
2718
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments';
|
|
2719
|
-
};
|
|
2720
|
-
export type CreateWhiteboardPreviewCommentErrors = {
|
|
2721
|
-
/**
|
|
2722
|
-
* Forbidden - No access to this preview
|
|
2723
|
-
*/
|
|
2724
|
-
403: unknown;
|
|
2725
|
-
/**
|
|
2726
|
-
* Validation error
|
|
2727
|
-
*/
|
|
2728
|
-
422: unknown;
|
|
2729
|
-
};
|
|
2730
|
-
export type CreateWhiteboardPreviewCommentResponses = {
|
|
2731
|
-
/**
|
|
2732
|
-
* Comment created
|
|
2733
|
-
*/
|
|
2734
|
-
201: Comments;
|
|
2735
|
-
};
|
|
2736
|
-
export type CreateWhiteboardPreviewCommentResponse = CreateWhiteboardPreviewCommentResponses[keyof CreateWhiteboardPreviewCommentResponses];
|
|
2737
|
-
export type DeleteWhiteboardPreviewCommentData = {
|
|
2738
|
-
body?: never;
|
|
2739
|
-
path: {
|
|
2740
|
-
/**
|
|
2741
|
-
* Whiteboard Preview ID
|
|
2742
|
-
*/
|
|
2743
|
-
whiteboard_preview: string;
|
|
2744
|
-
/**
|
|
2745
|
-
* Comment ID
|
|
2746
|
-
*/
|
|
2747
|
-
comment: string;
|
|
2748
|
-
};
|
|
2749
|
-
query?: never;
|
|
2750
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments/{comment}';
|
|
2751
|
-
};
|
|
2752
|
-
export type DeleteWhiteboardPreviewCommentErrors = {
|
|
2753
|
-
/**
|
|
2754
|
-
* Forbidden - Can only delete own comments or no access to preview
|
|
2755
|
-
*/
|
|
2756
|
-
403: unknown;
|
|
2757
|
-
/**
|
|
2758
|
-
* Comment or preview not found
|
|
2759
|
-
*/
|
|
2760
|
-
404: unknown;
|
|
2761
|
-
};
|
|
2762
|
-
export type DeleteWhiteboardPreviewCommentResponses = {
|
|
2763
|
-
/**
|
|
2764
|
-
* Comment deleted successfully
|
|
2765
|
-
*/
|
|
2766
|
-
200: Comments;
|
|
2767
|
-
};
|
|
2768
|
-
export type DeleteWhiteboardPreviewCommentResponse = DeleteWhiteboardPreviewCommentResponses[keyof DeleteWhiteboardPreviewCommentResponses];
|
|
2769
|
-
export type UpdateWhiteboardPreviewCommentData = {
|
|
2770
|
-
body: WhiteboardPreviewCommentUpdateRequest;
|
|
2771
|
-
path: {
|
|
2772
|
-
/**
|
|
2773
|
-
* Whiteboard Preview ID
|
|
2774
|
-
*/
|
|
2775
|
-
whiteboard_preview: string;
|
|
2776
|
-
/**
|
|
2777
|
-
* Comment ID
|
|
2778
|
-
*/
|
|
2779
|
-
comment: string;
|
|
2780
|
-
};
|
|
2781
|
-
query?: never;
|
|
2782
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments/{comment}';
|
|
2783
|
-
};
|
|
2784
|
-
export type UpdateWhiteboardPreviewCommentErrors = {
|
|
2785
|
-
/**
|
|
2786
|
-
* Forbidden - Can only edit own comments or no access to preview
|
|
2787
|
-
*/
|
|
2788
|
-
403: unknown;
|
|
2789
|
-
/**
|
|
2790
|
-
* Comment or preview not found
|
|
2791
|
-
*/
|
|
2792
|
-
404: unknown;
|
|
2793
|
-
/**
|
|
2794
|
-
* Validation error
|
|
2795
|
-
*/
|
|
2796
|
-
422: unknown;
|
|
2797
|
-
};
|
|
2798
|
-
export type UpdateWhiteboardPreviewCommentResponses = {
|
|
2799
|
-
/**
|
|
2800
|
-
* Comment updated
|
|
2801
|
-
*/
|
|
2802
|
-
200: Comments;
|
|
2803
|
-
};
|
|
2804
|
-
export type UpdateWhiteboardPreviewCommentResponse = UpdateWhiteboardPreviewCommentResponses[keyof UpdateWhiteboardPreviewCommentResponses];
|
|
2805
|
-
export type ShowExternalWhiteboardPreviewData = {
|
|
2806
|
-
body?: never;
|
|
2807
|
-
path: {
|
|
2808
|
-
/**
|
|
2809
|
-
* Whiteboard Preview ID
|
|
2810
|
-
*/
|
|
2811
|
-
whiteboard_preview: string;
|
|
2812
|
-
};
|
|
2813
|
-
query?: never;
|
|
2814
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}';
|
|
2815
|
-
};
|
|
2816
|
-
export type ShowExternalWhiteboardPreviewErrors = {
|
|
2817
|
-
/**
|
|
2818
|
-
* Not found
|
|
2819
|
-
*/
|
|
2820
|
-
404: unknown;
|
|
2821
|
-
};
|
|
2822
|
-
export type ShowExternalWhiteboardPreviewResponses = {
|
|
2823
|
-
/**
|
|
2824
|
-
* Whiteboard preview with posts
|
|
2825
|
-
*/
|
|
2826
|
-
200: WhiteboardPreviewsWithPosts;
|
|
2827
|
-
};
|
|
2828
|
-
export type ShowExternalWhiteboardPreviewResponse = ShowExternalWhiteboardPreviewResponses[keyof ShowExternalWhiteboardPreviewResponses];
|
|
2829
|
-
export type UpdateExternalWhiteboardPreviewData = {
|
|
2830
|
-
body: {
|
|
2831
|
-
status: 'approved' | 'rejected';
|
|
2832
|
-
feedback?: string | null;
|
|
2833
|
-
};
|
|
2834
|
-
path: {
|
|
2835
|
-
/**
|
|
2836
|
-
* Whiteboard Preview ID
|
|
2837
|
-
*/
|
|
2838
|
-
whiteboard_preview: string;
|
|
2839
|
-
};
|
|
2840
|
-
query?: never;
|
|
2841
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}';
|
|
2842
|
-
};
|
|
2843
|
-
export type UpdateExternalWhiteboardPreviewErrors = {
|
|
2844
|
-
/**
|
|
2845
|
-
* Not found
|
|
2846
|
-
*/
|
|
2847
|
-
404: unknown;
|
|
2848
|
-
/**
|
|
2849
|
-
* Validation error or whiteboard preview is discarded
|
|
2850
|
-
*/
|
|
2851
|
-
422: {
|
|
2852
|
-
error?: string;
|
|
2853
|
-
};
|
|
2854
|
-
};
|
|
2855
|
-
export type UpdateExternalWhiteboardPreviewError = UpdateExternalWhiteboardPreviewErrors[keyof UpdateExternalWhiteboardPreviewErrors];
|
|
2856
|
-
export type UpdateExternalWhiteboardPreviewResponses = {
|
|
2857
|
-
/**
|
|
2858
|
-
* Whiteboard preview status updated
|
|
2859
|
-
*/
|
|
2860
|
-
200: WhiteboardPreviewsWithPosts;
|
|
2861
|
-
};
|
|
2862
|
-
export type UpdateExternalWhiteboardPreviewResponse = UpdateExternalWhiteboardPreviewResponses[keyof UpdateExternalWhiteboardPreviewResponses];
|
|
2863
|
-
export type ListWhiteboardPreviewPostCommentsData = {
|
|
2864
|
-
body?: never;
|
|
2865
|
-
path: {
|
|
2866
|
-
/**
|
|
2867
|
-
* Whiteboard Preview ID
|
|
2868
|
-
*/
|
|
2869
|
-
whiteboard_preview: string;
|
|
2870
|
-
/**
|
|
2871
|
-
* Whiteboard Preview Post ID
|
|
2872
|
-
*/
|
|
2873
|
-
whiteboard_preview_post: string;
|
|
2874
|
-
};
|
|
2875
|
-
query?: {
|
|
2876
|
-
/**
|
|
2877
|
-
* Filter comments by commenter source
|
|
2878
|
-
*/
|
|
2879
|
-
commenter_source?: 'all' | 'internal' | 'external' | 'mine';
|
|
2880
|
-
};
|
|
2881
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments';
|
|
2882
|
-
};
|
|
2883
|
-
export type ListWhiteboardPreviewPostCommentsErrors = {
|
|
2884
|
-
/**
|
|
2885
|
-
* Forbidden - No access to this preview
|
|
2886
|
-
*/
|
|
2887
|
-
403: unknown;
|
|
2888
|
-
/**
|
|
2889
|
-
* Post not found for this preview
|
|
2890
|
-
*/
|
|
2891
|
-
404: unknown;
|
|
2892
|
-
};
|
|
2893
|
-
export type ListWhiteboardPreviewPostCommentsResponses = {
|
|
2894
|
-
/**
|
|
2895
|
-
* List of comments
|
|
2896
|
-
*/
|
|
2897
|
-
200: Array<Comments>;
|
|
2898
|
-
};
|
|
2899
|
-
export type ListWhiteboardPreviewPostCommentsResponse = ListWhiteboardPreviewPostCommentsResponses[keyof ListWhiteboardPreviewPostCommentsResponses];
|
|
2900
|
-
export type CreateWhiteboardPreviewPostCommentData = {
|
|
2901
|
-
body: {
|
|
2902
|
-
content: string;
|
|
2903
|
-
/**
|
|
2904
|
-
* Parent comment ID for replies
|
|
2905
|
-
*/
|
|
2906
|
-
parent_id?: string | null;
|
|
2907
|
-
};
|
|
2908
|
-
path: {
|
|
2909
|
-
/**
|
|
2910
|
-
* Whiteboard Preview ID
|
|
2911
|
-
*/
|
|
2912
|
-
whiteboard_preview: string;
|
|
2913
|
-
/**
|
|
2914
|
-
* Whiteboard Preview Post ID
|
|
2915
|
-
*/
|
|
2916
|
-
whiteboard_preview_post: string;
|
|
2917
|
-
};
|
|
2918
|
-
query?: never;
|
|
2919
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments';
|
|
2920
|
-
};
|
|
2921
|
-
export type CreateWhiteboardPreviewPostCommentErrors = {
|
|
2922
|
-
/**
|
|
2923
|
-
* Forbidden - No access to this preview
|
|
2924
|
-
*/
|
|
2925
|
-
403: unknown;
|
|
2926
|
-
/**
|
|
2927
|
-
* Post not found for this preview
|
|
2928
|
-
*/
|
|
2929
|
-
404: unknown;
|
|
2930
|
-
/**
|
|
2931
|
-
* Validation error
|
|
2932
|
-
*/
|
|
2933
|
-
422: unknown;
|
|
2934
|
-
};
|
|
2935
|
-
export type CreateWhiteboardPreviewPostCommentResponses = {
|
|
2936
|
-
/**
|
|
2937
|
-
* Comment created
|
|
2938
|
-
*/
|
|
2939
|
-
201: Comments;
|
|
2940
|
-
};
|
|
2941
|
-
export type CreateWhiteboardPreviewPostCommentResponse = CreateWhiteboardPreviewPostCommentResponses[keyof CreateWhiteboardPreviewPostCommentResponses];
|
|
2942
|
-
export type DeleteWhiteboardPreviewPostCommentData = {
|
|
2943
|
-
body?: never;
|
|
2944
|
-
path: {
|
|
2945
|
-
/**
|
|
2946
|
-
* Whiteboard Preview ID
|
|
2947
|
-
*/
|
|
2948
|
-
whiteboard_preview: string;
|
|
2949
|
-
/**
|
|
2950
|
-
* Whiteboard Preview Post ID
|
|
2951
|
-
*/
|
|
2952
|
-
whiteboard_preview_post: string;
|
|
2953
|
-
/**
|
|
2954
|
-
* Comment ID
|
|
2955
|
-
*/
|
|
2956
|
-
comment: string;
|
|
2957
|
-
};
|
|
2958
|
-
query?: never;
|
|
2959
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments/{comment}';
|
|
2960
|
-
};
|
|
2961
|
-
export type DeleteWhiteboardPreviewPostCommentErrors = {
|
|
2962
|
-
/**
|
|
2963
|
-
* Forbidden - Can only delete own comments or no access to preview
|
|
2964
|
-
*/
|
|
2965
|
-
403: unknown;
|
|
2966
|
-
/**
|
|
2967
|
-
* Comment or post not found
|
|
2968
|
-
*/
|
|
2969
|
-
404: unknown;
|
|
2970
|
-
};
|
|
2971
|
-
export type DeleteWhiteboardPreviewPostCommentResponses = {
|
|
2972
|
-
/**
|
|
2973
|
-
* Comment deleted successfully
|
|
2974
|
-
*/
|
|
2975
|
-
200: Comments;
|
|
2976
|
-
};
|
|
2977
|
-
export type DeleteWhiteboardPreviewPostCommentResponse = DeleteWhiteboardPreviewPostCommentResponses[keyof DeleteWhiteboardPreviewPostCommentResponses];
|
|
2978
|
-
export type UpdateWhiteboardPreviewPostCommentData = {
|
|
2979
|
-
body: {
|
|
2980
|
-
content?: string;
|
|
2981
|
-
};
|
|
2982
|
-
path: {
|
|
2983
|
-
/**
|
|
2984
|
-
* Whiteboard Preview ID
|
|
2985
|
-
*/
|
|
2986
|
-
whiteboard_preview: string;
|
|
2987
|
-
/**
|
|
2988
|
-
* Whiteboard Preview Post ID
|
|
2989
|
-
*/
|
|
2990
|
-
whiteboard_preview_post: string;
|
|
2991
|
-
/**
|
|
2992
|
-
* Comment ID
|
|
2993
|
-
*/
|
|
2994
|
-
comment: string;
|
|
2995
|
-
};
|
|
2996
|
-
query?: never;
|
|
2997
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments/{comment}';
|
|
2998
|
-
};
|
|
2999
|
-
export type UpdateWhiteboardPreviewPostCommentErrors = {
|
|
3000
|
-
/**
|
|
3001
|
-
* Forbidden - Can only edit own comments or no access to preview
|
|
3002
|
-
*/
|
|
3003
|
-
403: unknown;
|
|
3004
|
-
/**
|
|
3005
|
-
* Comment or post not found
|
|
3006
|
-
*/
|
|
3007
|
-
404: unknown;
|
|
3008
|
-
/**
|
|
3009
|
-
* Validation error
|
|
3010
|
-
*/
|
|
3011
|
-
422: unknown;
|
|
3012
|
-
};
|
|
3013
|
-
export type UpdateWhiteboardPreviewPostCommentResponses = {
|
|
3014
|
-
/**
|
|
3015
|
-
* Comment updated
|
|
3016
|
-
*/
|
|
3017
|
-
200: Comments;
|
|
3018
|
-
};
|
|
3019
|
-
export type UpdateWhiteboardPreviewPostCommentResponse = UpdateWhiteboardPreviewPostCommentResponses[keyof UpdateWhiteboardPreviewPostCommentResponses];
|
|
3020
|
-
export type ListExternalUsersData = {
|
|
3021
|
-
body?: never;
|
|
3022
|
-
path?: never;
|
|
3023
|
-
query?: {
|
|
3024
|
-
/**
|
|
3025
|
-
* Filter by brand ID
|
|
3026
|
-
*/
|
|
3027
|
-
brand_id?: string;
|
|
3028
|
-
};
|
|
3029
|
-
url: '/api/external-users';
|
|
3030
|
-
};
|
|
3031
|
-
export type ListExternalUsersErrors = {
|
|
3032
|
-
/**
|
|
3033
|
-
* No active workspace set
|
|
3034
|
-
*/
|
|
3035
|
-
422: unknown;
|
|
3036
|
-
};
|
|
3037
|
-
export type ListExternalUsersResponses = {
|
|
3038
|
-
/**
|
|
3039
|
-
* List of external users
|
|
3040
|
-
*/
|
|
3041
|
-
200: Array<ExternalUsers>;
|
|
3042
|
-
};
|
|
3043
|
-
export type ListExternalUsersResponse = ListExternalUsersResponses[keyof ListExternalUsersResponses];
|
|
3044
|
-
export type CreateExternalUserData = {
|
|
3045
|
-
body: ExternalUsers;
|
|
3046
|
-
path?: never;
|
|
3047
|
-
query?: never;
|
|
3048
|
-
url: '/api/external-users';
|
|
3049
|
-
};
|
|
3050
|
-
export type CreateExternalUserErrors = {
|
|
3051
|
-
/**
|
|
3052
|
-
* Validation error
|
|
3053
|
-
*/
|
|
3054
|
-
422: unknown;
|
|
3055
|
-
};
|
|
3056
|
-
export type CreateExternalUserResponses = {
|
|
3057
|
-
/**
|
|
3058
|
-
* External user created
|
|
3059
|
-
*/
|
|
3060
|
-
201: ExternalUsers;
|
|
3061
|
-
};
|
|
3062
|
-
export type CreateExternalUserResponse = CreateExternalUserResponses[keyof CreateExternalUserResponses];
|
|
3063
|
-
export type DeleteExternalUserData = {
|
|
3064
|
-
body?: never;
|
|
3065
|
-
path: {
|
|
3066
|
-
/**
|
|
3067
|
-
* External User ID
|
|
3068
|
-
*/
|
|
3069
|
-
id: string;
|
|
3070
|
-
};
|
|
3071
|
-
query?: never;
|
|
3072
|
-
url: '/api/external-users/{id}';
|
|
3073
|
-
};
|
|
3074
|
-
export type DeleteExternalUserErrors = {
|
|
3075
|
-
/**
|
|
3076
|
-
* Not found
|
|
3077
|
-
*/
|
|
3078
|
-
404: unknown;
|
|
3079
|
-
};
|
|
3080
|
-
export type DeleteExternalUserResponses = {
|
|
3081
|
-
/**
|
|
3082
|
-
* External user deleted
|
|
3083
|
-
*/
|
|
3084
|
-
204: void;
|
|
3085
|
-
};
|
|
3086
|
-
export type DeleteExternalUserResponse = DeleteExternalUserResponses[keyof DeleteExternalUserResponses];
|
|
3087
|
-
export type GetExternalUserData = {
|
|
3088
|
-
body?: never;
|
|
3089
|
-
path: {
|
|
3090
|
-
/**
|
|
3091
|
-
* External User ID
|
|
3092
|
-
*/
|
|
3093
|
-
id: string;
|
|
3094
|
-
};
|
|
3095
|
-
query?: never;
|
|
3096
|
-
url: '/api/external-users/{id}';
|
|
3097
|
-
};
|
|
3098
|
-
export type GetExternalUserErrors = {
|
|
3099
|
-
/**
|
|
3100
|
-
* Not found
|
|
3101
|
-
*/
|
|
3102
|
-
404: unknown;
|
|
3103
|
-
};
|
|
3104
|
-
export type GetExternalUserResponses = {
|
|
3105
|
-
/**
|
|
3106
|
-
* External user details
|
|
3107
|
-
*/
|
|
3108
|
-
200: ExternalUsers;
|
|
3109
|
-
};
|
|
3110
|
-
export type GetExternalUserResponse = GetExternalUserResponses[keyof GetExternalUserResponses];
|
|
3111
|
-
export type UpdateExternalUserData = {
|
|
3112
|
-
body: ExternalUsers;
|
|
3113
|
-
path: {
|
|
3114
|
-
/**
|
|
3115
|
-
* External User ID
|
|
3116
|
-
*/
|
|
3117
|
-
id: string;
|
|
3118
|
-
};
|
|
3119
|
-
query?: never;
|
|
3120
|
-
url: '/api/external-users/{id}';
|
|
3121
|
-
};
|
|
3122
|
-
export type UpdateExternalUserErrors = {
|
|
3123
|
-
/**
|
|
3124
|
-
* Not found
|
|
3125
|
-
*/
|
|
3126
|
-
404: unknown;
|
|
3127
|
-
};
|
|
3128
|
-
export type UpdateExternalUserResponses = {
|
|
3129
|
-
/**
|
|
3130
|
-
* External user updated
|
|
3131
|
-
*/
|
|
3132
|
-
200: ExternalUsers;
|
|
3133
|
-
};
|
|
3134
|
-
export type UpdateExternalUserResponse = UpdateExternalUserResponses[keyof UpdateExternalUserResponses];
|
|
3135
|
-
export type ListNotificationsData = {
|
|
3136
|
-
body?: never;
|
|
3137
|
-
path?: never;
|
|
3138
|
-
query?: {
|
|
3139
|
-
/**
|
|
3140
|
-
* Filter for unread notifications only
|
|
3141
|
-
*/
|
|
3142
|
-
unread?: boolean;
|
|
3143
|
-
};
|
|
3144
|
-
url: '/api/notifications';
|
|
3145
|
-
};
|
|
3146
|
-
export type ListNotificationsResponses = {
|
|
3147
|
-
/**
|
|
3148
|
-
* List of notifications
|
|
3149
|
-
*/
|
|
3150
|
-
200: Array<Notifications>;
|
|
3151
|
-
};
|
|
3152
|
-
export type ListNotificationsResponse = ListNotificationsResponses[keyof ListNotificationsResponses];
|
|
3153
|
-
export type CreateNotificationData = {
|
|
3154
|
-
body: Notifications;
|
|
3155
|
-
path?: never;
|
|
3156
|
-
query?: never;
|
|
3157
|
-
url: '/api/notifications';
|
|
3158
|
-
};
|
|
3159
|
-
export type CreateNotificationErrors = {
|
|
3160
|
-
/**
|
|
3161
|
-
* Validation error
|
|
3162
|
-
*/
|
|
3163
|
-
422: unknown;
|
|
3164
|
-
};
|
|
3165
|
-
export type CreateNotificationResponses = {
|
|
3166
|
-
/**
|
|
3167
|
-
* Notification created
|
|
3168
|
-
*/
|
|
3169
|
-
201: Notifications;
|
|
3170
|
-
};
|
|
3171
|
-
export type CreateNotificationResponse = CreateNotificationResponses[keyof CreateNotificationResponses];
|
|
3172
|
-
export type DeleteNotificationData = {
|
|
3173
|
-
body?: never;
|
|
3174
|
-
path: {
|
|
3175
|
-
/**
|
|
3176
|
-
* Notification ID
|
|
3177
|
-
*/
|
|
3178
|
-
id: string;
|
|
3179
|
-
};
|
|
3180
|
-
query?: never;
|
|
3181
|
-
url: '/api/notifications/{id}';
|
|
3182
|
-
};
|
|
3183
|
-
export type DeleteNotificationErrors = {
|
|
3184
|
-
/**
|
|
3185
|
-
* Not found
|
|
3186
|
-
*/
|
|
3187
|
-
404: unknown;
|
|
3188
|
-
};
|
|
3189
|
-
export type DeleteNotificationResponses = {
|
|
3190
|
-
/**
|
|
3191
|
-
* Notification deleted
|
|
3192
|
-
*/
|
|
3193
|
-
204: void;
|
|
3194
|
-
};
|
|
3195
|
-
export type DeleteNotificationResponse = DeleteNotificationResponses[keyof DeleteNotificationResponses];
|
|
3196
|
-
export type GetNotificationData = {
|
|
3197
|
-
body?: never;
|
|
3198
|
-
path: {
|
|
3199
|
-
/**
|
|
3200
|
-
* Notification ID
|
|
3201
|
-
*/
|
|
3202
|
-
id: string;
|
|
3203
|
-
};
|
|
3204
|
-
query?: never;
|
|
3205
|
-
url: '/api/notifications/{id}';
|
|
3206
|
-
};
|
|
3207
|
-
export type GetNotificationErrors = {
|
|
3208
|
-
/**
|
|
3209
|
-
* Not found
|
|
3210
|
-
*/
|
|
3211
|
-
404: unknown;
|
|
3212
|
-
};
|
|
3213
|
-
export type GetNotificationResponses = {
|
|
3214
|
-
/**
|
|
3215
|
-
* Notification details
|
|
3216
|
-
*/
|
|
3217
|
-
200: Notifications;
|
|
3218
|
-
};
|
|
3219
|
-
export type GetNotificationResponse = GetNotificationResponses[keyof GetNotificationResponses];
|
|
3220
|
-
export type UpdateNotificationData = {
|
|
3221
|
-
body: Notifications;
|
|
3222
|
-
path: {
|
|
3223
|
-
/**
|
|
3224
|
-
* Notification ID
|
|
3225
|
-
*/
|
|
3226
|
-
id: string;
|
|
3227
|
-
};
|
|
3228
|
-
query?: never;
|
|
3229
|
-
url: '/api/notifications/{id}';
|
|
3230
|
-
};
|
|
3231
|
-
export type UpdateNotificationErrors = {
|
|
3232
|
-
/**
|
|
3233
|
-
* Not found
|
|
3234
|
-
*/
|
|
3235
|
-
404: unknown;
|
|
3236
|
-
};
|
|
3237
|
-
export type UpdateNotificationResponses = {
|
|
3238
|
-
/**
|
|
3239
|
-
* Notification updated
|
|
3240
|
-
*/
|
|
3241
|
-
200: Notifications;
|
|
3242
|
-
};
|
|
3243
|
-
export type UpdateNotificationResponse = UpdateNotificationResponses[keyof UpdateNotificationResponses];
|
|
3244
|
-
export type ListPackagesData = {
|
|
3245
|
-
body?: never;
|
|
3246
|
-
path?: never;
|
|
3247
|
-
query?: never;
|
|
3248
|
-
url: '/api/packages';
|
|
3249
|
-
};
|
|
3250
|
-
export type ListPackagesResponses = {
|
|
3251
|
-
/**
|
|
3252
|
-
* List of packages
|
|
3253
|
-
*/
|
|
3254
|
-
200: Array<Packages>;
|
|
3255
|
-
};
|
|
3256
|
-
export type ListPackagesResponse = ListPackagesResponses[keyof ListPackagesResponses];
|
|
3257
|
-
export type CreatePackageData = {
|
|
3258
|
-
body: Packages;
|
|
3259
|
-
path?: never;
|
|
3260
|
-
query?: never;
|
|
3261
|
-
url: '/api/packages';
|
|
3262
|
-
};
|
|
3263
|
-
export type CreatePackageErrors = {
|
|
3264
|
-
/**
|
|
3265
|
-
* Validation error
|
|
3266
|
-
*/
|
|
3267
|
-
422: unknown;
|
|
3268
|
-
};
|
|
3269
|
-
export type CreatePackageResponses = {
|
|
3270
|
-
/**
|
|
3271
|
-
* Package created
|
|
3272
|
-
*/
|
|
3273
|
-
201: Packages;
|
|
3274
|
-
};
|
|
3275
|
-
export type CreatePackageResponse = CreatePackageResponses[keyof CreatePackageResponses];
|
|
3276
|
-
export type DeletePackageData = {
|
|
3277
|
-
body?: never;
|
|
3278
|
-
path: {
|
|
3279
|
-
/**
|
|
3280
|
-
* Package ID
|
|
3281
|
-
*/
|
|
3282
|
-
id: string;
|
|
3283
|
-
};
|
|
3284
|
-
query?: never;
|
|
3285
|
-
url: '/api/packages/{id}';
|
|
3286
|
-
};
|
|
3287
|
-
export type DeletePackageErrors = {
|
|
3288
|
-
/**
|
|
3289
|
-
* Not found
|
|
3290
|
-
*/
|
|
3291
|
-
404: unknown;
|
|
3292
|
-
};
|
|
3293
|
-
export type DeletePackageResponses = {
|
|
3294
|
-
/**
|
|
3295
|
-
* Package deleted
|
|
3296
|
-
*/
|
|
3297
|
-
204: void;
|
|
3298
|
-
};
|
|
3299
|
-
export type DeletePackageResponse = DeletePackageResponses[keyof DeletePackageResponses];
|
|
3300
|
-
export type GetPackageData = {
|
|
3301
|
-
body?: never;
|
|
3302
|
-
path: {
|
|
3303
|
-
/**
|
|
3304
|
-
* Package ID
|
|
3305
|
-
*/
|
|
3306
|
-
id: string;
|
|
3307
|
-
};
|
|
3308
|
-
query?: never;
|
|
3309
|
-
url: '/api/packages/{id}';
|
|
3310
|
-
};
|
|
3311
|
-
export type GetPackageErrors = {
|
|
3312
|
-
/**
|
|
3313
|
-
* Not found
|
|
3314
|
-
*/
|
|
3315
|
-
404: unknown;
|
|
3316
|
-
};
|
|
3317
|
-
export type GetPackageResponses = {
|
|
3318
|
-
/**
|
|
3319
|
-
* Package details
|
|
3320
|
-
*/
|
|
3321
|
-
200: Packages;
|
|
3322
|
-
};
|
|
3323
|
-
export type GetPackageResponse = GetPackageResponses[keyof GetPackageResponses];
|
|
3324
|
-
export type UpdatePackageData = {
|
|
3325
|
-
body: Packages;
|
|
3326
|
-
path: {
|
|
3327
|
-
/**
|
|
3328
|
-
* Package ID
|
|
3329
|
-
*/
|
|
3330
|
-
id: string;
|
|
3331
|
-
};
|
|
3332
|
-
query?: never;
|
|
3333
|
-
url: '/api/packages/{id}';
|
|
3334
|
-
};
|
|
3335
|
-
export type UpdatePackageErrors = {
|
|
3336
|
-
/**
|
|
3337
|
-
* Not found
|
|
3338
|
-
*/
|
|
3339
|
-
404: unknown;
|
|
3340
|
-
};
|
|
3341
|
-
export type UpdatePackageResponses = {
|
|
3342
|
-
/**
|
|
3343
|
-
* Package updated
|
|
3344
|
-
*/
|
|
3345
|
-
200: Packages;
|
|
3346
|
-
};
|
|
3347
|
-
export type UpdatePackageResponse = UpdatePackageResponses[keyof UpdatePackageResponses];
|
|
3348
|
-
export type ListUsersData = {
|
|
3349
|
-
body?: never;
|
|
3350
|
-
path?: never;
|
|
3351
|
-
query?: never;
|
|
3352
|
-
url: '/api/users';
|
|
3353
|
-
};
|
|
3354
|
-
export type ListUsersErrors = {
|
|
3355
|
-
/**
|
|
3356
|
-
* Unauthenticated
|
|
3357
|
-
*/
|
|
3358
|
-
401: unknown;
|
|
3359
|
-
/**
|
|
3360
|
-
* No active workspace set
|
|
3361
|
-
*/
|
|
3362
|
-
422: unknown;
|
|
3363
|
-
};
|
|
3364
|
-
export type ListUsersResponses = {
|
|
3365
|
-
/**
|
|
3366
|
-
* List of users
|
|
3367
|
-
*/
|
|
3368
|
-
200: Array<Users>;
|
|
3369
|
-
};
|
|
3370
|
-
export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
|
|
3371
|
-
export type CreateUserData = {
|
|
3372
|
-
body: UserStoreRequest;
|
|
3373
|
-
path?: never;
|
|
3374
|
-
query?: never;
|
|
3375
|
-
url: '/api/users';
|
|
3376
|
-
};
|
|
3377
|
-
export type CreateUserErrors = {
|
|
3378
|
-
/**
|
|
3379
|
-
* Unauthenticated or user does not belong to workspace
|
|
3380
|
-
*/
|
|
3381
|
-
401: unknown;
|
|
3382
|
-
/**
|
|
3383
|
-
* Validation error
|
|
3384
|
-
*/
|
|
3385
|
-
422: unknown;
|
|
3386
|
-
};
|
|
3387
|
-
export type CreateUserResponses = {
|
|
3388
|
-
/**
|
|
3389
|
-
* User created
|
|
3390
|
-
*/
|
|
3391
|
-
201: Users;
|
|
3392
|
-
};
|
|
3393
|
-
export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
|
|
3394
|
-
export type DeleteUserData = {
|
|
3395
|
-
body?: never;
|
|
3396
|
-
path: {
|
|
3397
|
-
/**
|
|
3398
|
-
* User ID (sqid)
|
|
3399
|
-
*/
|
|
3400
|
-
id: string;
|
|
3401
|
-
};
|
|
3402
|
-
query?: never;
|
|
3403
|
-
url: '/api/users/{id}';
|
|
3404
|
-
};
|
|
3405
|
-
export type DeleteUserErrors = {
|
|
3406
|
-
/**
|
|
3407
|
-
* Unauthenticated
|
|
3408
|
-
*/
|
|
3409
|
-
401: unknown;
|
|
3410
|
-
/**
|
|
3411
|
-
* User not found
|
|
3412
|
-
*/
|
|
3413
|
-
404: unknown;
|
|
3414
|
-
};
|
|
3415
|
-
export type DeleteUserResponses = {
|
|
3416
|
-
/**
|
|
3417
|
-
* User deleted
|
|
3418
|
-
*/
|
|
3419
|
-
204: void;
|
|
3420
|
-
};
|
|
3421
|
-
export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
|
|
3422
|
-
export type GetUserData = {
|
|
3423
|
-
body?: never;
|
|
3424
|
-
path: {
|
|
3425
|
-
/**
|
|
3426
|
-
* User ID (sqid)
|
|
3427
|
-
*/
|
|
3428
|
-
id: string;
|
|
3429
|
-
};
|
|
3430
|
-
query?: never;
|
|
3431
|
-
url: '/api/users/{id}';
|
|
3432
|
-
};
|
|
3433
|
-
export type GetUserErrors = {
|
|
3434
|
-
/**
|
|
3435
|
-
* Unauthenticated
|
|
3436
|
-
*/
|
|
3437
|
-
401: unknown;
|
|
3438
|
-
/**
|
|
3439
|
-
* User not found
|
|
3440
|
-
*/
|
|
3441
|
-
404: unknown;
|
|
3442
|
-
};
|
|
3443
|
-
export type GetUserResponses = {
|
|
3444
|
-
/**
|
|
3445
|
-
* User details
|
|
3446
|
-
*/
|
|
3447
|
-
200: Users;
|
|
3448
|
-
};
|
|
3449
|
-
export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
|
|
3450
|
-
export type UpdateUserData = {
|
|
3451
|
-
body: UserUpdateRequest;
|
|
3452
|
-
path: {
|
|
3453
|
-
/**
|
|
3454
|
-
* User ID (sqid)
|
|
3455
|
-
*/
|
|
3456
|
-
id: string;
|
|
3457
|
-
};
|
|
3458
|
-
query?: never;
|
|
3459
|
-
url: '/api/users/{id}';
|
|
3460
|
-
};
|
|
3461
|
-
export type UpdateUserErrors = {
|
|
3462
|
-
/**
|
|
3463
|
-
* Unauthenticated
|
|
3464
|
-
*/
|
|
3465
|
-
401: unknown;
|
|
3466
|
-
/**
|
|
3467
|
-
* User not found
|
|
3468
|
-
*/
|
|
3469
|
-
404: unknown;
|
|
3470
|
-
/**
|
|
3471
|
-
* Validation error
|
|
3472
|
-
*/
|
|
3473
|
-
422: unknown;
|
|
3474
|
-
};
|
|
3475
|
-
export type UpdateUserResponses = {
|
|
3476
|
-
/**
|
|
3477
|
-
* User updated
|
|
3478
|
-
*/
|
|
3479
|
-
200: Users;
|
|
3480
|
-
};
|
|
3481
|
-
export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
|
|
3482
|
-
export type ListWebhookEventsData = {
|
|
3483
|
-
body?: never;
|
|
3484
|
-
path?: never;
|
|
3485
|
-
query?: {
|
|
3486
|
-
/**
|
|
3487
|
-
* Filter by event status
|
|
3488
|
-
*/
|
|
3489
|
-
status?: string;
|
|
3490
|
-
};
|
|
3491
|
-
url: '/api/webhook-events';
|
|
3492
|
-
};
|
|
3493
|
-
export type ListWebhookEventsErrors = {
|
|
3494
|
-
/**
|
|
3495
|
-
* No active workspace set
|
|
3496
|
-
*/
|
|
3497
|
-
422: unknown;
|
|
3498
|
-
};
|
|
3499
|
-
export type ListWebhookEventsResponses = {
|
|
3500
|
-
/**
|
|
3501
|
-
* List of webhook events
|
|
3502
|
-
*/
|
|
3503
|
-
200: Array<WebhookEvents>;
|
|
3504
|
-
};
|
|
3505
|
-
export type ListWebhookEventsResponse = ListWebhookEventsResponses[keyof ListWebhookEventsResponses];
|
|
3506
|
-
export type CreateWebhookEventData = {
|
|
3507
|
-
body: WebhookEvents;
|
|
3508
|
-
path?: never;
|
|
3509
|
-
query?: never;
|
|
3510
|
-
url: '/api/webhook-events';
|
|
3511
|
-
};
|
|
3512
|
-
export type CreateWebhookEventErrors = {
|
|
3513
|
-
/**
|
|
3514
|
-
* Validation error
|
|
3515
|
-
*/
|
|
3516
|
-
422: unknown;
|
|
3517
|
-
};
|
|
3518
|
-
export type CreateWebhookEventResponses = {
|
|
3519
|
-
/**
|
|
3520
|
-
* Webhook event created
|
|
3521
|
-
*/
|
|
3522
|
-
201: WebhookEvents;
|
|
3523
|
-
};
|
|
3524
|
-
export type CreateWebhookEventResponse = CreateWebhookEventResponses[keyof CreateWebhookEventResponses];
|
|
3525
|
-
export type DeleteWebhookEventData = {
|
|
3526
|
-
body?: never;
|
|
3527
|
-
path: {
|
|
3528
|
-
/**
|
|
3529
|
-
* Webhook Event ID
|
|
3530
|
-
*/
|
|
3531
|
-
id: string;
|
|
3532
|
-
};
|
|
3533
|
-
query?: never;
|
|
3534
|
-
url: '/api/webhook-events/{id}';
|
|
3535
|
-
};
|
|
3536
|
-
export type DeleteWebhookEventErrors = {
|
|
3537
|
-
/**
|
|
3538
|
-
* Not found
|
|
3539
|
-
*/
|
|
3540
|
-
404: unknown;
|
|
3541
|
-
};
|
|
3542
|
-
export type DeleteWebhookEventResponses = {
|
|
3543
|
-
/**
|
|
3544
|
-
* Webhook event deleted
|
|
3545
|
-
*/
|
|
3546
|
-
204: void;
|
|
3547
|
-
};
|
|
3548
|
-
export type DeleteWebhookEventResponse = DeleteWebhookEventResponses[keyof DeleteWebhookEventResponses];
|
|
3549
|
-
export type GetWebhookEventData = {
|
|
3550
|
-
body?: never;
|
|
3551
|
-
path: {
|
|
3552
|
-
/**
|
|
3553
|
-
* Webhook Event ID
|
|
3554
|
-
*/
|
|
3555
|
-
id: string;
|
|
3556
|
-
};
|
|
3557
|
-
query?: never;
|
|
3558
|
-
url: '/api/webhook-events/{id}';
|
|
3559
|
-
};
|
|
3560
|
-
export type GetWebhookEventErrors = {
|
|
3561
|
-
/**
|
|
3562
|
-
* Not found
|
|
3563
|
-
*/
|
|
3564
|
-
404: unknown;
|
|
3565
|
-
};
|
|
3566
|
-
export type GetWebhookEventResponses = {
|
|
3567
|
-
/**
|
|
3568
|
-
* Webhook event details
|
|
3569
|
-
*/
|
|
3570
|
-
200: WebhookEvents;
|
|
3571
|
-
};
|
|
3572
|
-
export type GetWebhookEventResponse = GetWebhookEventResponses[keyof GetWebhookEventResponses];
|
|
3573
|
-
export type UpdateWebhookEventData = {
|
|
3574
|
-
body: WebhookEvents;
|
|
3575
|
-
path: {
|
|
3576
|
-
/**
|
|
3577
|
-
* Webhook Event ID
|
|
3578
|
-
*/
|
|
3579
|
-
id: string;
|
|
3580
|
-
};
|
|
3581
|
-
query?: never;
|
|
3582
|
-
url: '/api/webhook-events/{id}';
|
|
3583
|
-
};
|
|
3584
|
-
export type UpdateWebhookEventErrors = {
|
|
3585
|
-
/**
|
|
3586
|
-
* Not found
|
|
3587
|
-
*/
|
|
3588
|
-
404: unknown;
|
|
3589
|
-
};
|
|
3590
|
-
export type UpdateWebhookEventResponses = {
|
|
3591
|
-
/**
|
|
3592
|
-
* Webhook event updated
|
|
1941
|
+
* Company updated
|
|
3593
1942
|
*/
|
|
3594
|
-
200:
|
|
1943
|
+
200: Companies;
|
|
3595
1944
|
};
|
|
3596
|
-
export type
|
|
3597
|
-
export type
|
|
1945
|
+
export type UpdateCompanyResponse = UpdateCompanyResponses[keyof UpdateCompanyResponses];
|
|
1946
|
+
export type ListWebhookEventsData = {
|
|
3598
1947
|
body?: never;
|
|
3599
1948
|
path?: never;
|
|
3600
1949
|
query?: {
|
|
3601
1950
|
/**
|
|
3602
|
-
* Filter by
|
|
1951
|
+
* Filter by event status
|
|
3603
1952
|
*/
|
|
3604
|
-
|
|
1953
|
+
status?: string;
|
|
3605
1954
|
};
|
|
3606
|
-
url: '/api/webhook-
|
|
1955
|
+
url: '/api/webhook-events';
|
|
3607
1956
|
};
|
|
3608
|
-
export type
|
|
1957
|
+
export type ListWebhookEventsErrors = {
|
|
3609
1958
|
/**
|
|
3610
1959
|
* No active workspace set
|
|
3611
1960
|
*/
|
|
3612
1961
|
422: unknown;
|
|
3613
1962
|
};
|
|
3614
|
-
export type
|
|
1963
|
+
export type ListWebhookEventsResponses = {
|
|
3615
1964
|
/**
|
|
3616
|
-
* List of webhook
|
|
1965
|
+
* List of webhook events
|
|
3617
1966
|
*/
|
|
3618
|
-
200: Array<
|
|
1967
|
+
200: Array<WebhookEvents>;
|
|
3619
1968
|
};
|
|
3620
|
-
export type
|
|
3621
|
-
export type
|
|
3622
|
-
body:
|
|
1969
|
+
export type ListWebhookEventsResponse = ListWebhookEventsResponses[keyof ListWebhookEventsResponses];
|
|
1970
|
+
export type CreateWebhookEventData = {
|
|
1971
|
+
body: WebhookEvents;
|
|
3623
1972
|
path?: never;
|
|
3624
1973
|
query?: never;
|
|
3625
|
-
url: '/api/webhook-
|
|
1974
|
+
url: '/api/webhook-events';
|
|
3626
1975
|
};
|
|
3627
|
-
export type
|
|
1976
|
+
export type CreateWebhookEventErrors = {
|
|
3628
1977
|
/**
|
|
3629
1978
|
* Validation error
|
|
3630
1979
|
*/
|
|
3631
1980
|
422: unknown;
|
|
3632
1981
|
};
|
|
3633
|
-
export type
|
|
1982
|
+
export type CreateWebhookEventResponses = {
|
|
3634
1983
|
/**
|
|
3635
|
-
* Webhook
|
|
1984
|
+
* Webhook event created
|
|
3636
1985
|
*/
|
|
3637
|
-
201:
|
|
1986
|
+
201: WebhookEvents;
|
|
3638
1987
|
};
|
|
3639
|
-
export type
|
|
3640
|
-
export type
|
|
1988
|
+
export type CreateWebhookEventResponse = CreateWebhookEventResponses[keyof CreateWebhookEventResponses];
|
|
1989
|
+
export type DeleteWebhookEventData = {
|
|
3641
1990
|
body?: never;
|
|
3642
1991
|
path: {
|
|
3643
1992
|
/**
|
|
3644
|
-
* Webhook
|
|
1993
|
+
* Webhook Event ID
|
|
3645
1994
|
*/
|
|
3646
1995
|
id: string;
|
|
3647
1996
|
};
|
|
3648
1997
|
query?: never;
|
|
3649
|
-
url: '/api/webhook-
|
|
1998
|
+
url: '/api/webhook-events/{id}';
|
|
3650
1999
|
};
|
|
3651
|
-
export type
|
|
2000
|
+
export type DeleteWebhookEventErrors = {
|
|
3652
2001
|
/**
|
|
3653
2002
|
* Not found
|
|
3654
2003
|
*/
|
|
3655
2004
|
404: unknown;
|
|
3656
2005
|
};
|
|
3657
|
-
export type
|
|
2006
|
+
export type DeleteWebhookEventResponses = {
|
|
3658
2007
|
/**
|
|
3659
|
-
* Webhook
|
|
2008
|
+
* Webhook event deleted
|
|
3660
2009
|
*/
|
|
3661
2010
|
204: void;
|
|
3662
2011
|
};
|
|
3663
|
-
export type
|
|
3664
|
-
export type
|
|
2012
|
+
export type DeleteWebhookEventResponse = DeleteWebhookEventResponses[keyof DeleteWebhookEventResponses];
|
|
2013
|
+
export type GetWebhookEventData = {
|
|
3665
2014
|
body?: never;
|
|
3666
2015
|
path: {
|
|
3667
2016
|
/**
|
|
3668
|
-
* Webhook
|
|
2017
|
+
* Webhook Event ID
|
|
3669
2018
|
*/
|
|
3670
2019
|
id: string;
|
|
3671
2020
|
};
|
|
3672
2021
|
query?: never;
|
|
3673
|
-
url: '/api/webhook-
|
|
2022
|
+
url: '/api/webhook-events/{id}';
|
|
3674
2023
|
};
|
|
3675
|
-
export type
|
|
2024
|
+
export type GetWebhookEventErrors = {
|
|
3676
2025
|
/**
|
|
3677
2026
|
* Not found
|
|
3678
2027
|
*/
|
|
3679
2028
|
404: unknown;
|
|
3680
2029
|
};
|
|
3681
|
-
export type
|
|
2030
|
+
export type GetWebhookEventResponses = {
|
|
3682
2031
|
/**
|
|
3683
|
-
* Webhook
|
|
2032
|
+
* Webhook event details
|
|
3684
2033
|
*/
|
|
3685
|
-
200:
|
|
2034
|
+
200: WebhookEvents;
|
|
3686
2035
|
};
|
|
3687
|
-
export type
|
|
3688
|
-
export type
|
|
3689
|
-
body:
|
|
2036
|
+
export type GetWebhookEventResponse = GetWebhookEventResponses[keyof GetWebhookEventResponses];
|
|
2037
|
+
export type UpdateWebhookEventData = {
|
|
2038
|
+
body: WebhookEvents;
|
|
3690
2039
|
path: {
|
|
3691
2040
|
/**
|
|
3692
|
-
* Webhook
|
|
2041
|
+
* Webhook Event ID
|
|
3693
2042
|
*/
|
|
3694
2043
|
id: string;
|
|
3695
2044
|
};
|
|
3696
2045
|
query?: never;
|
|
3697
|
-
url: '/api/webhook-
|
|
2046
|
+
url: '/api/webhook-events/{id}';
|
|
3698
2047
|
};
|
|
3699
|
-
export type
|
|
2048
|
+
export type UpdateWebhookEventErrors = {
|
|
3700
2049
|
/**
|
|
3701
2050
|
* Not found
|
|
3702
2051
|
*/
|
|
3703
2052
|
404: unknown;
|
|
3704
2053
|
};
|
|
3705
|
-
export type
|
|
2054
|
+
export type UpdateWebhookEventResponses = {
|
|
3706
2055
|
/**
|
|
3707
|
-
* Webhook
|
|
2056
|
+
* Webhook event updated
|
|
3708
2057
|
*/
|
|
3709
|
-
200:
|
|
2058
|
+
200: WebhookEvents;
|
|
3710
2059
|
};
|
|
3711
|
-
export type
|
|
2060
|
+
export type UpdateWebhookEventResponse = UpdateWebhookEventResponses[keyof UpdateWebhookEventResponses];
|
|
3712
2061
|
export type ListWhiteboardCommentsData = {
|
|
3713
2062
|
body?: never;
|
|
3714
2063
|
path: {
|
|
@@ -4189,10 +2538,6 @@ export type ListWhiteboardPostsData = {
|
|
|
4189
2538
|
whiteboard: string;
|
|
4190
2539
|
};
|
|
4191
2540
|
query?: {
|
|
4192
|
-
/**
|
|
4193
|
-
* Filter by platform
|
|
4194
|
-
*/
|
|
4195
|
-
platform?: string;
|
|
4196
2541
|
/**
|
|
4197
2542
|
* Filter by status
|
|
4198
2543
|
*/
|
|
@@ -4215,8 +2560,8 @@ export type ListWhiteboardPostsResponses = {
|
|
|
4215
2560
|
export type ListWhiteboardPostsResponse = ListWhiteboardPostsResponses[keyof ListWhiteboardPostsResponses];
|
|
4216
2561
|
export type CreateWhiteboardPostData = {
|
|
4217
2562
|
body: {
|
|
2563
|
+
channel_id: string;
|
|
4218
2564
|
type?: PostType | null;
|
|
4219
|
-
platform?: PostPlatform | null;
|
|
4220
2565
|
content?: string | null;
|
|
4221
2566
|
title?: string | null;
|
|
4222
2567
|
image_url?: string | null;
|
|
@@ -4329,8 +2674,8 @@ export type GetWhiteboardPostResponses = {
|
|
|
4329
2674
|
export type GetWhiteboardPostResponse = GetWhiteboardPostResponses[keyof GetWhiteboardPostResponses];
|
|
4330
2675
|
export type UpdateWhiteboardPostData = {
|
|
4331
2676
|
body: {
|
|
2677
|
+
channel_id?: string;
|
|
4332
2678
|
type?: PostType | null;
|
|
4333
|
-
platform?: PostPlatform | null;
|
|
4334
2679
|
content?: string | null;
|
|
4335
2680
|
title?: string | null;
|
|
4336
2681
|
image_url?: string | null;
|
|
@@ -4648,312 +2993,6 @@ export type InviteWhiteboardPreviewExternalUserResponses = {
|
|
|
4648
2993
|
201: WhiteboardPreviewPublicUser;
|
|
4649
2994
|
};
|
|
4650
2995
|
export type InviteWhiteboardPreviewExternalUserResponse = InviteWhiteboardPreviewExternalUserResponses[keyof InviteWhiteboardPreviewExternalUserResponses];
|
|
4651
|
-
export type ListWorkspacesData = {
|
|
4652
|
-
body?: never;
|
|
4653
|
-
path?: never;
|
|
4654
|
-
query?: never;
|
|
4655
|
-
url: '/api/workspaces';
|
|
4656
|
-
};
|
|
4657
|
-
export type ListWorkspacesErrors = {
|
|
4658
|
-
/**
|
|
4659
|
-
* Unauthenticated
|
|
4660
|
-
*/
|
|
4661
|
-
401: unknown;
|
|
4662
|
-
};
|
|
4663
|
-
export type ListWorkspacesResponses = {
|
|
4664
|
-
/**
|
|
4665
|
-
* List of workspaces
|
|
4666
|
-
*/
|
|
4667
|
-
200: Array<Workspaces>;
|
|
4668
|
-
};
|
|
4669
|
-
export type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
|
|
4670
|
-
export type CreateWorkspaceData = {
|
|
4671
|
-
body: WorkspaceStoreRequest;
|
|
4672
|
-
path?: never;
|
|
4673
|
-
query?: never;
|
|
4674
|
-
url: '/api/workspaces';
|
|
4675
|
-
};
|
|
4676
|
-
export type CreateWorkspaceErrors = {
|
|
4677
|
-
/**
|
|
4678
|
-
* Unauthenticated
|
|
4679
|
-
*/
|
|
4680
|
-
401: unknown;
|
|
4681
|
-
/**
|
|
4682
|
-
* Validation error
|
|
4683
|
-
*/
|
|
4684
|
-
422: unknown;
|
|
4685
|
-
};
|
|
4686
|
-
export type CreateWorkspaceResponses = {
|
|
4687
|
-
/**
|
|
4688
|
-
* Workspace created
|
|
4689
|
-
*/
|
|
4690
|
-
201: Workspaces;
|
|
4691
|
-
};
|
|
4692
|
-
export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
|
|
4693
|
-
export type DeleteWorkspaceData = {
|
|
4694
|
-
body?: never;
|
|
4695
|
-
path: {
|
|
4696
|
-
/**
|
|
4697
|
-
* Workspace ID
|
|
4698
|
-
*/
|
|
4699
|
-
id: string;
|
|
4700
|
-
};
|
|
4701
|
-
query?: never;
|
|
4702
|
-
url: '/api/workspaces/{id}';
|
|
4703
|
-
};
|
|
4704
|
-
export type DeleteWorkspaceErrors = {
|
|
4705
|
-
/**
|
|
4706
|
-
* Unauthenticated
|
|
4707
|
-
*/
|
|
4708
|
-
401: unknown;
|
|
4709
|
-
/**
|
|
4710
|
-
* User is not the workspace owner
|
|
4711
|
-
*/
|
|
4712
|
-
403: unknown;
|
|
4713
|
-
/**
|
|
4714
|
-
* Not found
|
|
4715
|
-
*/
|
|
4716
|
-
404: unknown;
|
|
4717
|
-
};
|
|
4718
|
-
export type DeleteWorkspaceResponses = {
|
|
4719
|
-
/**
|
|
4720
|
-
* Workspace deleted
|
|
4721
|
-
*/
|
|
4722
|
-
204: void;
|
|
4723
|
-
};
|
|
4724
|
-
export type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
|
|
4725
|
-
export type GetWorkspaceData = {
|
|
4726
|
-
body?: never;
|
|
4727
|
-
path: {
|
|
4728
|
-
/**
|
|
4729
|
-
* Workspace ID
|
|
4730
|
-
*/
|
|
4731
|
-
id: string;
|
|
4732
|
-
};
|
|
4733
|
-
query?: never;
|
|
4734
|
-
url: '/api/workspaces/{id}';
|
|
4735
|
-
};
|
|
4736
|
-
export type GetWorkspaceErrors = {
|
|
4737
|
-
/**
|
|
4738
|
-
* Unauthenticated
|
|
4739
|
-
*/
|
|
4740
|
-
401: unknown;
|
|
4741
|
-
/**
|
|
4742
|
-
* User is not a member of this workspace
|
|
4743
|
-
*/
|
|
4744
|
-
403: unknown;
|
|
4745
|
-
/**
|
|
4746
|
-
* Not found
|
|
4747
|
-
*/
|
|
4748
|
-
404: unknown;
|
|
4749
|
-
};
|
|
4750
|
-
export type GetWorkspaceResponses = {
|
|
4751
|
-
/**
|
|
4752
|
-
* Workspace details with billing info
|
|
4753
|
-
*/
|
|
4754
|
-
200: WorkspaceDetail;
|
|
4755
|
-
};
|
|
4756
|
-
export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
|
|
4757
|
-
export type UpdateWorkspaceData = {
|
|
4758
|
-
body: WorkspaceUpdateRequest;
|
|
4759
|
-
path: {
|
|
4760
|
-
/**
|
|
4761
|
-
* Workspace ID
|
|
4762
|
-
*/
|
|
4763
|
-
id: string;
|
|
4764
|
-
};
|
|
4765
|
-
query?: never;
|
|
4766
|
-
url: '/api/workspaces/{id}';
|
|
4767
|
-
};
|
|
4768
|
-
export type UpdateWorkspaceErrors = {
|
|
4769
|
-
/**
|
|
4770
|
-
* Unauthenticated
|
|
4771
|
-
*/
|
|
4772
|
-
401: unknown;
|
|
4773
|
-
/**
|
|
4774
|
-
* User is not the workspace owner
|
|
4775
|
-
*/
|
|
4776
|
-
403: unknown;
|
|
4777
|
-
/**
|
|
4778
|
-
* Not found
|
|
4779
|
-
*/
|
|
4780
|
-
404: unknown;
|
|
4781
|
-
/**
|
|
4782
|
-
* Validation error
|
|
4783
|
-
*/
|
|
4784
|
-
422: unknown;
|
|
4785
|
-
};
|
|
4786
|
-
export type UpdateWorkspaceResponses = {
|
|
4787
|
-
/**
|
|
4788
|
-
* Workspace updated
|
|
4789
|
-
*/
|
|
4790
|
-
200: Workspaces;
|
|
4791
|
-
};
|
|
4792
|
-
export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
|
|
4793
|
-
export type ListPendingInvitesData = {
|
|
4794
|
-
body?: never;
|
|
4795
|
-
path?: never;
|
|
4796
|
-
query?: never;
|
|
4797
|
-
url: '/api/invites';
|
|
4798
|
-
};
|
|
4799
|
-
export type ListPendingInvitesErrors = {
|
|
4800
|
-
/**
|
|
4801
|
-
* Unauthenticated
|
|
4802
|
-
*/
|
|
4803
|
-
401: unknown;
|
|
4804
|
-
/**
|
|
4805
|
-
* Not authorized
|
|
4806
|
-
*/
|
|
4807
|
-
403: {
|
|
4808
|
-
message?: string;
|
|
4809
|
-
};
|
|
4810
|
-
/**
|
|
4811
|
-
* No active workspace
|
|
4812
|
-
*/
|
|
4813
|
-
422: {
|
|
4814
|
-
message?: string;
|
|
4815
|
-
};
|
|
4816
|
-
};
|
|
4817
|
-
export type ListPendingInvitesError = ListPendingInvitesErrors[keyof ListPendingInvitesErrors];
|
|
4818
|
-
export type ListPendingInvitesResponses = {
|
|
4819
|
-
/**
|
|
4820
|
-
* List of pending invitations
|
|
4821
|
-
*/
|
|
4822
|
-
200: {
|
|
4823
|
-
data?: Array<WorkspaceInvitation>;
|
|
4824
|
-
};
|
|
4825
|
-
};
|
|
4826
|
-
export type ListPendingInvitesResponse = ListPendingInvitesResponses[keyof ListPendingInvitesResponses];
|
|
4827
|
-
export type SendWorkspaceInviteData = {
|
|
4828
|
-
body: SendInviteRequest;
|
|
4829
|
-
path?: never;
|
|
4830
|
-
query?: never;
|
|
4831
|
-
url: '/api/invites/send';
|
|
4832
|
-
};
|
|
4833
|
-
export type SendWorkspaceInviteErrors = {
|
|
4834
|
-
/**
|
|
4835
|
-
* Unauthenticated
|
|
4836
|
-
*/
|
|
4837
|
-
401: unknown;
|
|
4838
|
-
/**
|
|
4839
|
-
* Not authorized to send invitations
|
|
4840
|
-
*/
|
|
4841
|
-
403: {
|
|
4842
|
-
message?: string;
|
|
4843
|
-
};
|
|
4844
|
-
/**
|
|
4845
|
-
* Validation error or business rule violation
|
|
4846
|
-
*/
|
|
4847
|
-
422: {
|
|
4848
|
-
message?: string;
|
|
4849
|
-
};
|
|
4850
|
-
};
|
|
4851
|
-
export type SendWorkspaceInviteError = SendWorkspaceInviteErrors[keyof SendWorkspaceInviteErrors];
|
|
4852
|
-
export type SendWorkspaceInviteResponses = {
|
|
4853
|
-
/**
|
|
4854
|
-
* Invitation sent successfully
|
|
4855
|
-
*/
|
|
4856
|
-
201: {
|
|
4857
|
-
data?: WorkspaceInvitation;
|
|
4858
|
-
};
|
|
4859
|
-
};
|
|
4860
|
-
export type SendWorkspaceInviteResponse = SendWorkspaceInviteResponses[keyof SendWorkspaceInviteResponses];
|
|
4861
|
-
export type ValidateWorkspaceInviteData = {
|
|
4862
|
-
body?: never;
|
|
4863
|
-
path: {
|
|
4864
|
-
/**
|
|
4865
|
-
* The invitation token
|
|
4866
|
-
*/
|
|
4867
|
-
token: string;
|
|
4868
|
-
};
|
|
4869
|
-
query?: never;
|
|
4870
|
-
url: '/api/invites/{token}';
|
|
4871
|
-
};
|
|
4872
|
-
export type ValidateWorkspaceInviteErrors = {
|
|
4873
|
-
/**
|
|
4874
|
-
* Invalid or nonexistent token
|
|
4875
|
-
*/
|
|
4876
|
-
404: {
|
|
4877
|
-
message?: string;
|
|
4878
|
-
};
|
|
4879
|
-
/**
|
|
4880
|
-
* Invitation already accepted
|
|
4881
|
-
*/
|
|
4882
|
-
409: {
|
|
4883
|
-
message?: string;
|
|
4884
|
-
};
|
|
4885
|
-
/**
|
|
4886
|
-
* Invitation expired
|
|
4887
|
-
*/
|
|
4888
|
-
410: {
|
|
4889
|
-
message?: string;
|
|
4890
|
-
};
|
|
4891
|
-
};
|
|
4892
|
-
export type ValidateWorkspaceInviteError = ValidateWorkspaceInviteErrors[keyof ValidateWorkspaceInviteErrors];
|
|
4893
|
-
export type ValidateWorkspaceInviteResponses = {
|
|
4894
|
-
/**
|
|
4895
|
-
* Valid invitation
|
|
4896
|
-
*/
|
|
4897
|
-
200: {
|
|
4898
|
-
message?: string;
|
|
4899
|
-
data?: {
|
|
4900
|
-
workspace_name?: string;
|
|
4901
|
-
email?: string;
|
|
4902
|
-
user_exists?: boolean;
|
|
4903
|
-
};
|
|
4904
|
-
};
|
|
4905
|
-
};
|
|
4906
|
-
export type ValidateWorkspaceInviteResponse = ValidateWorkspaceInviteResponses[keyof ValidateWorkspaceInviteResponses];
|
|
4907
|
-
export type AcceptWorkspaceInviteData = {
|
|
4908
|
-
body: AcceptInviteRequest;
|
|
4909
|
-
path?: never;
|
|
4910
|
-
query?: never;
|
|
4911
|
-
url: '/api/invites/accept';
|
|
4912
|
-
};
|
|
4913
|
-
export type AcceptWorkspaceInviteErrors = {
|
|
4914
|
-
/**
|
|
4915
|
-
* Unauthenticated
|
|
4916
|
-
*/
|
|
4917
|
-
401: unknown;
|
|
4918
|
-
/**
|
|
4919
|
-
* Email does not match invitation
|
|
4920
|
-
*/
|
|
4921
|
-
403: {
|
|
4922
|
-
message?: string;
|
|
4923
|
-
};
|
|
4924
|
-
/**
|
|
4925
|
-
* Invitation not found
|
|
4926
|
-
*/
|
|
4927
|
-
404: {
|
|
4928
|
-
message?: string;
|
|
4929
|
-
};
|
|
4930
|
-
/**
|
|
4931
|
-
* Invitation already accepted
|
|
4932
|
-
*/
|
|
4933
|
-
409: {
|
|
4934
|
-
message?: string;
|
|
4935
|
-
};
|
|
4936
|
-
/**
|
|
4937
|
-
* Invitation expired
|
|
4938
|
-
*/
|
|
4939
|
-
410: {
|
|
4940
|
-
message?: string;
|
|
4941
|
-
};
|
|
4942
|
-
};
|
|
4943
|
-
export type AcceptWorkspaceInviteError = AcceptWorkspaceInviteErrors[keyof AcceptWorkspaceInviteErrors];
|
|
4944
|
-
export type AcceptWorkspaceInviteResponses = {
|
|
4945
|
-
/**
|
|
4946
|
-
* Invitation accepted successfully
|
|
4947
|
-
*/
|
|
4948
|
-
200: {
|
|
4949
|
-
message?: string;
|
|
4950
|
-
data?: {
|
|
4951
|
-
workspace_id?: string;
|
|
4952
|
-
workspace_name?: string;
|
|
4953
|
-
};
|
|
4954
|
-
};
|
|
4955
|
-
};
|
|
4956
|
-
export type AcceptWorkspaceInviteResponse = AcceptWorkspaceInviteResponses[keyof AcceptWorkspaceInviteResponses];
|
|
4957
2996
|
export type ClientOptions = {
|
|
4958
2997
|
baseUrl: 'https://staging.adspire.ai' | (string & {});
|
|
4959
2998
|
};
|