@scryme/chat 2.57.1 → 2.71.1
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/generated/v3-client.d.ts +1705 -3150
- package/dist/generated/v3-client.js +1218 -2354
- package/dist/generated/v3-server.d.ts +222 -587
- package/dist/generated/v3-server.js +329 -754
- package/package.json +1 -1
- package/src/generated/v3-client.ts +2873 -5694
- package/src/generated/v3-server.ts +819 -1831
|
@@ -213,7 +213,15 @@ export type CallsControllerGetScheduledCallsParams = {
|
|
|
213
213
|
/**
|
|
214
214
|
* The workspace ID
|
|
215
215
|
*/
|
|
216
|
-
workspaceId
|
|
216
|
+
workspaceId?: string;
|
|
217
|
+
/**
|
|
218
|
+
* The workspace slug
|
|
219
|
+
*/
|
|
220
|
+
workspaceSlug?: string;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export type StorageControllerUploadFileBody = {
|
|
224
|
+
file?: Blob;
|
|
217
225
|
};
|
|
218
226
|
|
|
219
227
|
export type InvitationsControllerGetInvitationsParams = {
|
|
@@ -223,6 +231,31 @@ export type InvitationsControllerGetInvitationsParams = {
|
|
|
223
231
|
workspaceId?: string;
|
|
224
232
|
};
|
|
225
233
|
|
|
234
|
+
export type NotificationsControllerGetChannelSettingsParams = {
|
|
235
|
+
/**
|
|
236
|
+
* The channel ID
|
|
237
|
+
*/
|
|
238
|
+
channelId: string;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type NotificationsControllerGetWorkspaceSettingsParams = {
|
|
242
|
+
/**
|
|
243
|
+
* The workspace ID
|
|
244
|
+
*/
|
|
245
|
+
workspaceId: string;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export type NotificationsControllerGetNotificationsParams = {
|
|
249
|
+
/**
|
|
250
|
+
* Filter by unread only
|
|
251
|
+
*/
|
|
252
|
+
unreadOnly?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Number of notifications to return
|
|
255
|
+
*/
|
|
256
|
+
limit?: string;
|
|
257
|
+
};
|
|
258
|
+
|
|
226
259
|
export type V3ChannelIncomingWebhooksControllerExecuteWebhookByChannelIdParams = {
|
|
227
260
|
/**
|
|
228
261
|
* The unique webhook token (can alternatively use x-webhook-token header)
|
|
@@ -240,12 +273,6 @@ export type V3WorkspacesControllerDeleteWorkspace200 = {
|
|
|
240
273
|
timestamp?: string;
|
|
241
274
|
};
|
|
242
275
|
|
|
243
|
-
export type V3WorkspacesControllerUpdateWorkspace200 = {
|
|
244
|
-
data?: V3WorkspacesControllerUpdateWorkspace200Data;
|
|
245
|
-
success?: boolean;
|
|
246
|
-
timestamp?: string;
|
|
247
|
-
};
|
|
248
|
-
|
|
249
276
|
/**
|
|
250
277
|
* @nullable
|
|
251
278
|
*/
|
|
@@ -270,6 +297,18 @@ export type V3WorkspacesControllerUpdateWorkspace200Data = {
|
|
|
270
297
|
workspace?: V3WorkspacesControllerUpdateWorkspace200DataWorkspace;
|
|
271
298
|
};
|
|
272
299
|
|
|
300
|
+
export type V3WorkspacesControllerUpdateWorkspace200 = {
|
|
301
|
+
data?: V3WorkspacesControllerUpdateWorkspace200Data;
|
|
302
|
+
success?: boolean;
|
|
303
|
+
timestamp?: string;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export type V3WorkspacesControllerGetWorkspaceBySlug200 = {
|
|
307
|
+
data?: V3WorkspacesControllerGetWorkspaceBySlug200Data;
|
|
308
|
+
success?: boolean;
|
|
309
|
+
timestamp?: string;
|
|
310
|
+
};
|
|
311
|
+
|
|
273
312
|
/**
|
|
274
313
|
* @nullable
|
|
275
314
|
*/
|
|
@@ -294,8 +333,8 @@ export type V3WorkspacesControllerGetWorkspaceBySlug200Data = {
|
|
|
294
333
|
workspace?: V3WorkspacesControllerGetWorkspaceBySlug200DataWorkspace;
|
|
295
334
|
};
|
|
296
335
|
|
|
297
|
-
export type
|
|
298
|
-
data?:
|
|
336
|
+
export type V3WorkspacesControllerProvisionWorkspace201 = {
|
|
337
|
+
data?: V3WorkspacesControllerProvisionWorkspace201Data;
|
|
299
338
|
success?: boolean;
|
|
300
339
|
timestamp?: string;
|
|
301
340
|
};
|
|
@@ -317,12 +356,6 @@ export type V3WorkspacesControllerProvisionWorkspace201Data = {
|
|
|
317
356
|
workspace?: V3WorkspacesControllerProvisionWorkspace201DataWorkspace;
|
|
318
357
|
};
|
|
319
358
|
|
|
320
|
-
export type V3WorkspacesControllerProvisionWorkspace201 = {
|
|
321
|
-
data?: V3WorkspacesControllerProvisionWorkspace201Data;
|
|
322
|
-
success?: boolean;
|
|
323
|
-
timestamp?: string;
|
|
324
|
-
};
|
|
325
|
-
|
|
326
359
|
export type V3WorkspacesControllerGetWorkspaces200DataWorkspacesItem = {
|
|
327
360
|
createdAt?: string;
|
|
328
361
|
/** @nullable */
|
|
@@ -361,100 +394,6 @@ before?: string;
|
|
|
361
394
|
after?: string;
|
|
362
395
|
};
|
|
363
396
|
|
|
364
|
-
export type StorageControllerUploadFileBody = {
|
|
365
|
-
file?: Blob;
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
export type NotificationsControllerGetChannelSettingsParams = {
|
|
369
|
-
/**
|
|
370
|
-
* The channel ID
|
|
371
|
-
*/
|
|
372
|
-
channelId: string;
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
export type NotificationsControllerGetWorkspaceSettingsParams = {
|
|
376
|
-
/**
|
|
377
|
-
* The workspace ID
|
|
378
|
-
*/
|
|
379
|
-
workspaceId: string;
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
export type NotificationsControllerGetNotificationsParams = {
|
|
383
|
-
/**
|
|
384
|
-
* Filter by unread only
|
|
385
|
-
*/
|
|
386
|
-
unreadOnly?: string;
|
|
387
|
-
/**
|
|
388
|
-
* Number of notifications to return
|
|
389
|
-
*/
|
|
390
|
-
limit?: string;
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
export type V2ContactControllerSubmitContactFormBody = {
|
|
394
|
-
email?: string;
|
|
395
|
-
message?: string;
|
|
396
|
-
name?: string;
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
export type V2ApplicationsControllerInstallBotBody = {
|
|
400
|
-
workspaceId?: string;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export type V2OAuthControllerGetToken200 = {
|
|
404
|
-
access_token?: string;
|
|
405
|
-
expires_in?: number;
|
|
406
|
-
scope?: string;
|
|
407
|
-
token_type?: string;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
export type V2MessageActionsControllerHandleActionBodyPayload = { [key: string]: unknown };
|
|
411
|
-
|
|
412
|
-
export type V2MessageActionsControllerHandleActionBodyFormState = { [key: string]: unknown };
|
|
413
|
-
|
|
414
|
-
export type V2MessageActionsControllerHandleActionBody = {
|
|
415
|
-
formState?: V2MessageActionsControllerHandleActionBodyFormState;
|
|
416
|
-
payload?: V2MessageActionsControllerHandleActionBodyPayload;
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
export type V2ThreadsControllerGetThreadMessagesParams = {
|
|
420
|
-
cursor?: string;
|
|
421
|
-
limit?: number;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
export type V2ThreadsControllerGetThreadsParams = {
|
|
425
|
-
channelId?: string;
|
|
426
|
-
limit?: number;
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
export type V2SearchControllerSearchMessagesParams = {
|
|
430
|
-
/**
|
|
431
|
-
* The search query
|
|
432
|
-
*/
|
|
433
|
-
q: string;
|
|
434
|
-
channelId?: string;
|
|
435
|
-
limit?: number;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export type V2SearchControllerSearchMembersParams = {
|
|
439
|
-
/**
|
|
440
|
-
* The search query
|
|
441
|
-
*/
|
|
442
|
-
q: string;
|
|
443
|
-
limit?: number;
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
export type V2MessagesControllerGetMessagesParams = {
|
|
447
|
-
channelId?: string;
|
|
448
|
-
threadId?: string;
|
|
449
|
-
contextId?: string;
|
|
450
|
-
limit?: number;
|
|
451
|
-
cursor?: string;
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
export type V2MessagesControllerUploadChannelIconBody = {
|
|
455
|
-
file?: Blob;
|
|
456
|
-
};
|
|
457
|
-
|
|
458
397
|
export type UsersControllerDeleteDeviceTokenParams = {
|
|
459
398
|
token: string;
|
|
460
399
|
};
|
|
@@ -482,6 +421,10 @@ export type UsersControllerSearchUsersParams = {
|
|
|
482
421
|
query: string;
|
|
483
422
|
};
|
|
484
423
|
|
|
424
|
+
export type AppControllerGetLinkPreviewParams = {
|
|
425
|
+
url: string;
|
|
426
|
+
};
|
|
427
|
+
|
|
485
428
|
export type CreateScheduledNotificationDtoScheduleType = typeof CreateScheduledNotificationDtoScheduleType[keyof typeof CreateScheduledNotificationDtoScheduleType];
|
|
486
429
|
|
|
487
430
|
|
|
@@ -751,6 +694,7 @@ export const UpdateWorkspaceDtoPlan = {
|
|
|
751
694
|
export type UpdateWorkspaceDtoBrandingConfig = { [key: string]: unknown };
|
|
752
695
|
|
|
753
696
|
export interface UpdateWorkspaceDto {
|
|
697
|
+
banner?: string;
|
|
754
698
|
brandingConfig?: UpdateWorkspaceDtoBrandingConfig;
|
|
755
699
|
customDomain?: string;
|
|
756
700
|
description?: string;
|
|
@@ -822,6 +766,56 @@ export interface StartCallDto {
|
|
|
822
766
|
type: StartCallDtoType;
|
|
823
767
|
}
|
|
824
768
|
|
|
769
|
+
export type CreateIntegrationDtoService = typeof CreateIntegrationDtoService[keyof typeof CreateIntegrationDtoService];
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
773
|
+
export const CreateIntegrationDtoService = {
|
|
774
|
+
slack: 'slack',
|
|
775
|
+
github: 'github',
|
|
776
|
+
gitlab: 'gitlab',
|
|
777
|
+
jira: 'jira',
|
|
778
|
+
linear: 'linear',
|
|
779
|
+
notion: 'notion',
|
|
780
|
+
figma: 'figma',
|
|
781
|
+
discord: 'discord',
|
|
782
|
+
teams: 'teams',
|
|
783
|
+
zapier: 'zapier',
|
|
784
|
+
make: 'make',
|
|
785
|
+
custom: 'custom',
|
|
786
|
+
huly: 'huly',
|
|
787
|
+
} as const;
|
|
788
|
+
|
|
789
|
+
export interface CreateIntegrationDto {
|
|
790
|
+
config: CreateIntegrationDtoConfig;
|
|
791
|
+
description?: string;
|
|
792
|
+
name: string;
|
|
793
|
+
service: CreateIntegrationDtoService;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
export type CreateIntegrationDtoConfigCustomHeaders = { [key: string]: unknown };
|
|
797
|
+
|
|
798
|
+
export type CreateIntegrationDtoConfig = {
|
|
799
|
+
accessToken?: string;
|
|
800
|
+
apiKey?: string;
|
|
801
|
+
channelId?: string;
|
|
802
|
+
customHeaders?: CreateIntegrationDtoConfigCustomHeaders;
|
|
803
|
+
events?: string[];
|
|
804
|
+
hulyUrl?: string;
|
|
805
|
+
projectId?: string;
|
|
806
|
+
refreshToken?: string;
|
|
807
|
+
repositoryId?: string;
|
|
808
|
+
scopes?: string[];
|
|
809
|
+
teamId?: string;
|
|
810
|
+
webhookUrl?: string;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
export interface CreateIntegrationWebhookDto {
|
|
814
|
+
events: string[];
|
|
815
|
+
name: string;
|
|
816
|
+
url: string;
|
|
817
|
+
}
|
|
818
|
+
|
|
825
819
|
export type CreateInvitationDtoPermissions = { [key: string]: unknown };
|
|
826
820
|
|
|
827
821
|
export interface CreateInvitationDto {
|
|
@@ -832,6 +826,59 @@ export interface CreateInvitationDto {
|
|
|
832
826
|
workspaceId?: string;
|
|
833
827
|
}
|
|
834
828
|
|
|
829
|
+
export interface UpdateNotificationDto {
|
|
830
|
+
isRead: boolean;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
export type ChannelSettingsDtoPreference = typeof ChannelSettingsDtoPreference[keyof typeof ChannelSettingsDtoPreference];
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
837
|
+
export const ChannelSettingsDtoPreference = {
|
|
838
|
+
all: 'all',
|
|
839
|
+
mentions: 'mentions',
|
|
840
|
+
none: 'none',
|
|
841
|
+
default: 'default',
|
|
842
|
+
} as const;
|
|
843
|
+
|
|
844
|
+
export interface ChannelSettingsDto {
|
|
845
|
+
channelId: string;
|
|
846
|
+
preference: ChannelSettingsDtoPreference;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export type WorkspaceSettingsDtoPreference = typeof WorkspaceSettingsDtoPreference[keyof typeof WorkspaceSettingsDtoPreference];
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
853
|
+
export const WorkspaceSettingsDtoPreference = {
|
|
854
|
+
all: 'all',
|
|
855
|
+
mentions: 'mentions',
|
|
856
|
+
none: 'none',
|
|
857
|
+
} as const;
|
|
858
|
+
|
|
859
|
+
export interface WorkspaceSettingsDto {
|
|
860
|
+
preference: WorkspaceSettingsDtoPreference;
|
|
861
|
+
workspaceId: string;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export interface V3UpdateM2mApplicationDto {
|
|
865
|
+
allowedIps?: string[];
|
|
866
|
+
name?: string;
|
|
867
|
+
scopes?: string[];
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export interface V3CreateM2mApplicationDto {
|
|
871
|
+
allowedIps?: string[];
|
|
872
|
+
name: string;
|
|
873
|
+
scopes?: string[];
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export interface V3UpdateOrganizationDto {
|
|
877
|
+
banner?: string;
|
|
878
|
+
logo?: string;
|
|
879
|
+
name?: string;
|
|
880
|
+
}
|
|
881
|
+
|
|
835
882
|
export type ExecuteChannelIncomingWebhookDtoAttachmentsItem = { [key: string]: unknown };
|
|
836
883
|
|
|
837
884
|
export interface ExecuteChannelIncomingWebhookDto {
|
|
@@ -971,2412 +1018,1352 @@ export interface V3TokenRequestDto {
|
|
|
971
1018
|
scope?: string;
|
|
972
1019
|
}
|
|
973
1020
|
|
|
974
|
-
export interface UpdateNotificationDto {
|
|
975
|
-
isRead: boolean;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
export type ChannelSettingsDtoPreference = typeof ChannelSettingsDtoPreference[keyof typeof ChannelSettingsDtoPreference];
|
|
979
1021
|
|
|
980
1022
|
|
|
981
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
982
|
-
export const ChannelSettingsDtoPreference = {
|
|
983
|
-
all: 'all',
|
|
984
|
-
mentions: 'mentions',
|
|
985
|
-
none: 'none',
|
|
986
|
-
default: 'default',
|
|
987
|
-
} as const;
|
|
988
1023
|
|
|
989
|
-
|
|
990
|
-
channelId: string;
|
|
991
|
-
preference: ChannelSettingsDtoPreference;
|
|
992
|
-
}
|
|
1024
|
+
type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
|
|
993
1025
|
|
|
994
|
-
export type WorkspaceSettingsDtoPreference = typeof WorkspaceSettingsDtoPreference[keyof typeof WorkspaceSettingsDtoPreference];
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
998
|
-
export const WorkspaceSettingsDtoPreference = {
|
|
999
|
-
all: 'all',
|
|
1000
|
-
mentions: 'mentions',
|
|
1001
|
-
none: 'none',
|
|
1002
|
-
} as const;
|
|
1003
|
-
|
|
1004
|
-
export interface WorkspaceSettingsDto {
|
|
1005
|
-
preference: WorkspaceSettingsDtoPreference;
|
|
1006
|
-
workspaceId: string;
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
export type CreateIntegrationDtoService = typeof CreateIntegrationDtoService[keyof typeof CreateIntegrationDtoService];
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1013
|
-
export const CreateIntegrationDtoService = {
|
|
1014
|
-
slack: 'slack',
|
|
1015
|
-
github: 'github',
|
|
1016
|
-
gitlab: 'gitlab',
|
|
1017
|
-
jira: 'jira',
|
|
1018
|
-
linear: 'linear',
|
|
1019
|
-
notion: 'notion',
|
|
1020
|
-
figma: 'figma',
|
|
1021
|
-
discord: 'discord',
|
|
1022
|
-
teams: 'teams',
|
|
1023
|
-
zapier: 'zapier',
|
|
1024
|
-
make: 'make',
|
|
1025
|
-
custom: 'custom',
|
|
1026
|
-
huly: 'huly',
|
|
1027
|
-
} as const;
|
|
1028
|
-
|
|
1029
|
-
export type CreateIntegrationDtoConfigCustomHeaders = { [key: string]: unknown };
|
|
1030
|
-
|
|
1031
|
-
export type CreateIntegrationDtoConfig = {
|
|
1032
|
-
accessToken?: string;
|
|
1033
|
-
apiKey?: string;
|
|
1034
|
-
channelId?: string;
|
|
1035
|
-
customHeaders?: CreateIntegrationDtoConfigCustomHeaders;
|
|
1036
|
-
events?: string[];
|
|
1037
|
-
hulyUrl?: string;
|
|
1038
|
-
projectId?: string;
|
|
1039
|
-
refreshToken?: string;
|
|
1040
|
-
repositoryId?: string;
|
|
1041
|
-
scopes?: string[];
|
|
1042
|
-
teamId?: string;
|
|
1043
|
-
webhookUrl?: string;
|
|
1044
|
-
};
|
|
1045
|
-
|
|
1046
|
-
export interface CreateIntegrationDto {
|
|
1047
|
-
config: CreateIntegrationDtoConfig;
|
|
1048
|
-
description?: string;
|
|
1049
|
-
name: string;
|
|
1050
|
-
service: CreateIntegrationDtoService;
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
export interface CreateIntegrationWebhookDto {
|
|
1054
|
-
events: string[];
|
|
1055
|
-
name: string;
|
|
1056
|
-
url: string;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
export interface UpdateOrganizationDto {
|
|
1060
|
-
banner?: string;
|
|
1061
|
-
logo?: string;
|
|
1062
|
-
name?: string;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
export type ProvisionWorkspaceDtoInitialMembersItemRole = typeof ProvisionWorkspaceDtoInitialMembersItemRole[keyof typeof ProvisionWorkspaceDtoInitialMembersItemRole];
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1069
|
-
export const ProvisionWorkspaceDtoInitialMembersItemRole = {
|
|
1070
|
-
admin: 'admin',
|
|
1071
|
-
member: 'member',
|
|
1072
|
-
} as const;
|
|
1073
|
-
|
|
1074
|
-
export type ProvisionWorkspaceDtoInitialMembersItem = {
|
|
1075
|
-
email?: string;
|
|
1076
|
-
role?: ProvisionWorkspaceDtoInitialMembersItemRole;
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
/**
|
|
1080
|
-
* Custom branding configuration
|
|
1081
|
-
*/
|
|
1082
|
-
export type ProvisionWorkspaceDtoBrandingConfig = { [key: string]: unknown };
|
|
1083
|
-
|
|
1084
|
-
export interface ProvisionWorkspaceDto {
|
|
1085
|
-
/** Custom branding configuration */
|
|
1086
|
-
brandingConfig?: ProvisionWorkspaceDtoBrandingConfig;
|
|
1087
|
-
/** Initial channels to create */
|
|
1088
|
-
channels?: string[];
|
|
1089
|
-
description?: string;
|
|
1090
|
-
/** Icon identifier */
|
|
1091
|
-
icon?: string;
|
|
1092
|
-
industry?: string;
|
|
1093
|
-
/** Initial members to add to the workspace */
|
|
1094
|
-
initialMembers?: ProvisionWorkspaceDtoInitialMembersItem[];
|
|
1095
|
-
/** The display name of the workspace */
|
|
1096
|
-
name: string;
|
|
1097
|
-
/** The email of the workspace owner. Must exist in the organization. */
|
|
1098
|
-
ownerEmail: string;
|
|
1099
|
-
/** Unique slug for the workspace URL */
|
|
1100
|
-
slug: string;
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
export type UpdateApplicationDtoChannelDefinitions = { [key: string]: unknown };
|
|
1104
|
-
|
|
1105
|
-
export interface UpdateApplicationDto {
|
|
1106
|
-
allowedIps?: string[];
|
|
1107
|
-
channelDefinitions?: UpdateApplicationDtoChannelDefinitions;
|
|
1108
|
-
description?: string;
|
|
1109
|
-
name?: string;
|
|
1110
|
-
scopes?: string[];
|
|
1111
|
-
webhookSecret?: string;
|
|
1112
|
-
webhookUrl?: string;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
export interface CreateApplicationDto {
|
|
1116
|
-
allowedIps?: string[];
|
|
1117
|
-
description?: string;
|
|
1118
|
-
name: string;
|
|
1119
|
-
organizationId?: string;
|
|
1120
|
-
scopes?: string[];
|
|
1121
|
-
webhookSecret?: string;
|
|
1122
|
-
webhookUrl?: string;
|
|
1123
|
-
/** Optional workspace ID to link the bot to */
|
|
1124
|
-
workspaceId?: string;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
export type TokenRequestDtoGrantType = typeof TokenRequestDtoGrantType[keyof typeof TokenRequestDtoGrantType];
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1131
|
-
export const TokenRequestDtoGrantType = {
|
|
1132
|
-
client_credentials: 'client_credentials',
|
|
1133
|
-
} as const;
|
|
1134
|
-
|
|
1135
|
-
export interface TokenRequestDto {
|
|
1136
|
-
client_id: string;
|
|
1137
|
-
client_secret: string;
|
|
1138
|
-
grant_type: TokenRequestDtoGrantType;
|
|
1139
|
-
scope?: string;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export type UpdateAnnouncementDtoTargetAudience = { [key: string]: unknown };
|
|
1143
|
-
|
|
1144
|
-
export type UpdateAnnouncementDtoPriority = typeof UpdateAnnouncementDtoPriority[keyof typeof UpdateAnnouncementDtoPriority];
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1148
|
-
export const UpdateAnnouncementDtoPriority = {
|
|
1149
|
-
low: 'low',
|
|
1150
|
-
normal: 'normal',
|
|
1151
|
-
high: 'high',
|
|
1152
|
-
urgent: 'urgent',
|
|
1153
|
-
} as const;
|
|
1154
|
-
|
|
1155
|
-
export type UpdateAnnouncementDtoAttachmentsItem = { [key: string]: unknown };
|
|
1156
|
-
|
|
1157
|
-
export interface UpdateAnnouncementDto {
|
|
1158
|
-
attachments?: UpdateAnnouncementDtoAttachmentsItem[];
|
|
1159
|
-
content?: string;
|
|
1160
|
-
departmentId?: string;
|
|
1161
|
-
expiresAt?: string;
|
|
1162
|
-
pinned?: boolean;
|
|
1163
|
-
priority?: UpdateAnnouncementDtoPriority;
|
|
1164
|
-
publishAt?: string;
|
|
1165
|
-
targetAudience?: UpdateAnnouncementDtoTargetAudience;
|
|
1166
|
-
title?: string;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
export type CreateAnnouncementDtoTargetAudience = { [key: string]: unknown };
|
|
1170
|
-
|
|
1171
|
-
export type CreateAnnouncementDtoPriority = typeof CreateAnnouncementDtoPriority[keyof typeof CreateAnnouncementDtoPriority];
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1175
|
-
export const CreateAnnouncementDtoPriority = {
|
|
1176
|
-
low: 'low',
|
|
1177
|
-
normal: 'normal',
|
|
1178
|
-
high: 'high',
|
|
1179
|
-
urgent: 'urgent',
|
|
1180
|
-
} as const;
|
|
1181
|
-
|
|
1182
|
-
export type CreateAnnouncementDtoAttachmentsItem = { [key: string]: unknown };
|
|
1183
|
-
|
|
1184
|
-
export interface CreateAnnouncementDto {
|
|
1185
|
-
attachments?: CreateAnnouncementDtoAttachmentsItem[];
|
|
1186
|
-
content: string;
|
|
1187
|
-
departmentId: string;
|
|
1188
|
-
/** ISO string date */
|
|
1189
|
-
expiresAt?: string;
|
|
1190
|
-
pinned?: boolean;
|
|
1191
|
-
priority?: CreateAnnouncementDtoPriority;
|
|
1192
|
-
/** ISO string date */
|
|
1193
|
-
publishAt?: string;
|
|
1194
|
-
targetAudience?: CreateAnnouncementDtoTargetAudience;
|
|
1195
|
-
title: string;
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
export interface UpdateTeamDto {
|
|
1199
|
-
color?: string;
|
|
1200
|
-
departmentId?: string;
|
|
1201
|
-
description?: string;
|
|
1202
|
-
icon?: string;
|
|
1203
|
-
leadId?: string;
|
|
1204
|
-
name?: string;
|
|
1205
|
-
slug?: string;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
export interface CreateTeamDto {
|
|
1209
|
-
color?: string;
|
|
1210
|
-
departmentId?: string;
|
|
1211
|
-
description?: string;
|
|
1212
|
-
icon?: string;
|
|
1213
|
-
leadId?: string;
|
|
1214
|
-
name: string;
|
|
1215
|
-
slug: string;
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
export interface UpdateDepartmentDto {
|
|
1219
|
-
color?: string;
|
|
1220
|
-
description?: string;
|
|
1221
|
-
icon?: string;
|
|
1222
|
-
managerId?: string;
|
|
1223
|
-
name?: string;
|
|
1224
|
-
parentId?: string;
|
|
1225
|
-
slug?: string;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
export interface CreateDepartmentDto {
|
|
1229
|
-
color?: string;
|
|
1230
|
-
description?: string;
|
|
1231
|
-
icon?: string;
|
|
1232
|
-
managerId?: string;
|
|
1233
|
-
name: string;
|
|
1234
|
-
parentId?: string;
|
|
1235
|
-
slug: string;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
export interface UpdateWebhookDto {
|
|
1239
|
-
active?: boolean;
|
|
1240
|
-
events?: string[];
|
|
1241
|
-
name?: string;
|
|
1242
|
-
url?: string;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
export interface CreateWebhookDto {
|
|
1246
|
-
active?: boolean;
|
|
1247
|
-
events: string[];
|
|
1248
|
-
name: string;
|
|
1249
|
-
url: string;
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
export type CreateTokenDtoPermissionsActionsItem = typeof CreateTokenDtoPermissionsActionsItem[keyof typeof CreateTokenDtoPermissionsActionsItem];
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1256
|
-
export const CreateTokenDtoPermissionsActionsItem = {
|
|
1257
|
-
'read:members': 'read:members',
|
|
1258
|
-
'write:members': 'write:members',
|
|
1259
|
-
'read:departments': 'read:departments',
|
|
1260
|
-
'write:departments': 'write:departments',
|
|
1261
|
-
'read:teams': 'read:teams',
|
|
1262
|
-
'write:teams': 'write:teams',
|
|
1263
|
-
'read:announcements': 'read:announcements',
|
|
1264
|
-
'write:announcements': 'write:announcements',
|
|
1265
|
-
'read:channels': 'read:channels',
|
|
1266
|
-
'write:channels': 'write:channels',
|
|
1267
|
-
'send:messages': 'send:messages',
|
|
1268
|
-
'read:messages': 'read:messages',
|
|
1269
|
-
'read:threads': 'read:threads',
|
|
1270
|
-
'read:webhooks': 'read:webhooks',
|
|
1271
|
-
'write:webhooks': 'write:webhooks',
|
|
1272
|
-
'read:tokens': 'read:tokens',
|
|
1273
|
-
'write:tokens': 'write:tokens',
|
|
1274
|
-
} as const;
|
|
1275
|
-
|
|
1276
|
-
export type CreateTokenDtoPermissions = {
|
|
1277
|
-
actions?: CreateTokenDtoPermissionsActionsItem[];
|
|
1278
|
-
};
|
|
1279
|
-
|
|
1280
|
-
export interface CreateTokenDto {
|
|
1281
|
-
/** ISO string date */
|
|
1282
|
-
expiresAt?: string;
|
|
1283
|
-
name: string;
|
|
1284
|
-
permissions: CreateTokenDtoPermissions;
|
|
1285
|
-
rateLimit?: number;
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
export type SendMessageDtoMetadata = { [key: string]: unknown };
|
|
1289
|
-
|
|
1290
|
-
export type SendMessageDtoAttachmentsItem = { [key: string]: unknown };
|
|
1291
|
-
|
|
1292
|
-
export type SendMessageDtoActionsItem = { [key: string]: unknown };
|
|
1293
|
-
|
|
1294
|
-
export interface SendMessageDto {
|
|
1295
|
-
actions?: SendMessageDtoActionsItem[];
|
|
1296
|
-
attachments?: SendMessageDtoAttachmentsItem[];
|
|
1297
|
-
/** Required if recipientId is not provided */
|
|
1298
|
-
channelId?: string;
|
|
1299
|
-
content: string;
|
|
1300
|
-
contextId?: string;
|
|
1301
|
-
messageType?: string;
|
|
1302
|
-
metadata?: SendMessageDtoMetadata;
|
|
1303
|
-
/** Required if channelId is not provided */
|
|
1304
|
-
recipientId?: string;
|
|
1305
|
-
threadId?: string;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
export type UpdateChannelDtoType = typeof UpdateChannelDtoType[keyof typeof UpdateChannelDtoType];
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1312
|
-
export const UpdateChannelDtoType = {
|
|
1313
|
-
public: 'public',
|
|
1314
|
-
private: 'private',
|
|
1315
|
-
} as const;
|
|
1316
|
-
|
|
1317
|
-
export interface UpdateChannelDto {
|
|
1318
|
-
description?: string;
|
|
1319
|
-
icon?: string;
|
|
1320
|
-
name?: string;
|
|
1321
|
-
type?: UpdateChannelDtoType;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
export type CreateChannelDtoType = typeof CreateChannelDtoType[keyof typeof CreateChannelDtoType];
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1328
|
-
export const CreateChannelDtoType = {
|
|
1329
|
-
public: 'public',
|
|
1330
|
-
private: 'private',
|
|
1331
|
-
} as const;
|
|
1332
|
-
|
|
1333
|
-
export type CreateChannelDtoMetadata = { [key: string]: unknown };
|
|
1334
|
-
|
|
1335
|
-
export interface CreateChannelDto {
|
|
1336
|
-
description?: string;
|
|
1337
|
-
icon?: string;
|
|
1338
|
-
metadata?: CreateChannelDtoMetadata;
|
|
1339
|
-
name: string;
|
|
1340
|
-
type?: CreateChannelDtoType;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
export interface AddMemberDto {
|
|
1344
|
-
/** The email of the user to add */
|
|
1345
|
-
email: string;
|
|
1346
|
-
/** The role of the member */
|
|
1347
|
-
role?: string;
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
export const getSkyrmeChatAPI = () => {
|
|
1357
|
-
/**
|
|
1358
|
-
* @summary Check health
|
|
1359
|
-
*/
|
|
1360
|
-
const appControllerGetHealth = (
|
|
1361
|
-
|
|
1362
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1363
|
-
return customInstance<void>(
|
|
1364
|
-
{url: `/api/health`, method: 'GET'
|
|
1365
|
-
},
|
|
1366
|
-
options);
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
/**
|
|
1370
|
-
* @summary Hello
|
|
1371
|
-
*/
|
|
1372
|
-
const appControllerGetHello = (
|
|
1373
|
-
|
|
1374
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1375
|
-
return customInstance<void>(
|
|
1376
|
-
{url: `/api`, method: 'GET'
|
|
1377
|
-
},
|
|
1378
|
-
options);
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* @summary Get realtime configuration
|
|
1383
|
-
*/
|
|
1384
|
-
const appControllerGetRealtimeConfig = (
|
|
1385
|
-
|
|
1386
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1387
|
-
return customInstance<void>(
|
|
1388
|
-
{url: `/api/config/realtime`, method: 'GET'
|
|
1389
|
-
},
|
|
1390
|
-
options);
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* @summary Search for users by username or name
|
|
1395
|
-
*/
|
|
1396
|
-
const usersControllerSearchUsers = (
|
|
1397
|
-
params: UsersControllerSearchUsersParams,
|
|
1398
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1399
|
-
return customInstance<void>(
|
|
1400
|
-
{url: `/api/users/search`, method: 'GET',
|
|
1401
|
-
params
|
|
1402
|
-
},
|
|
1403
|
-
options);
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* @summary Get current user profile
|
|
1408
|
-
*/
|
|
1409
|
-
const usersControllerGetMe = (
|
|
1410
|
-
|
|
1411
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1412
|
-
return customInstance<void>(
|
|
1413
|
-
{url: `/api/users/me`, method: 'GET'
|
|
1414
|
-
},
|
|
1415
|
-
options);
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
/**
|
|
1419
|
-
* @summary Update current user profile
|
|
1420
|
-
*/
|
|
1421
|
-
const usersControllerUpdateMe = (
|
|
1422
|
-
|
|
1423
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1424
|
-
return customInstance<void>(
|
|
1425
|
-
{url: `/api/users/me`, method: 'POST'
|
|
1426
|
-
},
|
|
1427
|
-
options);
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
/**
|
|
1431
|
-
* @summary Get a user profile by ID
|
|
1432
|
-
*/
|
|
1433
|
-
const usersControllerGetUser = (
|
|
1434
|
-
id: string,
|
|
1435
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1436
|
-
return customInstance<void>(
|
|
1437
|
-
{url: `/api/users/${id}`, method: 'GET'
|
|
1438
|
-
},
|
|
1439
|
-
options);
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1443
|
-
* @summary Get social profile between current user and target user
|
|
1444
|
-
*/
|
|
1445
|
-
const usersControllerGetSocialProfile = (
|
|
1446
|
-
id: string,
|
|
1447
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1448
|
-
return customInstance<void>(
|
|
1449
|
-
{url: `/api/users/${id}/social-profile`, method: 'GET'
|
|
1450
|
-
},
|
|
1451
|
-
options);
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
/**
|
|
1455
|
-
* @summary Block a user
|
|
1456
|
-
*/
|
|
1457
|
-
const usersControllerBlockUser = (
|
|
1458
|
-
id: string,
|
|
1459
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1460
|
-
return customInstance<void>(
|
|
1461
|
-
{url: `/api/users/${id}/block`, method: 'POST'
|
|
1462
|
-
},
|
|
1463
|
-
options);
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
* @summary Unblock a user
|
|
1468
|
-
*/
|
|
1469
|
-
const usersControllerUnblockUser = (
|
|
1470
|
-
id: string,
|
|
1471
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1472
|
-
return customInstance<void>(
|
|
1473
|
-
{url: `/api/users/${id}/block`, method: 'DELETE'
|
|
1474
|
-
},
|
|
1475
|
-
options);
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* @summary Register a device token for push notifications
|
|
1480
|
-
*/
|
|
1481
|
-
const usersControllerRegisterDeviceToken = (
|
|
1482
|
-
usersControllerRegisterDeviceTokenBody: BodyType<UsersControllerRegisterDeviceTokenBody>,
|
|
1483
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1484
|
-
return customInstance<void>(
|
|
1485
|
-
{url: `/api/users/me/device-tokens`, method: 'POST',
|
|
1486
|
-
headers: {'Content-Type': 'application/json', },
|
|
1487
|
-
data: usersControllerRegisterDeviceTokenBody
|
|
1488
|
-
},
|
|
1489
|
-
options);
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
/**
|
|
1493
|
-
* @summary Get active device tokens for the current user
|
|
1494
|
-
*/
|
|
1495
|
-
const usersControllerGetDeviceTokens = (
|
|
1496
|
-
|
|
1497
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1498
|
-
return customInstance<void>(
|
|
1499
|
-
{url: `/api/users/me/device-tokens`, method: 'GET'
|
|
1500
|
-
},
|
|
1501
|
-
options);
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
/**
|
|
1505
|
-
* @summary Deactivate a device token
|
|
1506
|
-
*/
|
|
1507
|
-
const usersControllerDeleteDeviceToken = (
|
|
1508
|
-
params: UsersControllerDeleteDeviceTokenParams,
|
|
1509
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1510
|
-
return customInstance<void>(
|
|
1511
|
-
{url: `/api/users/me/device-tokens`, method: 'DELETE',
|
|
1512
|
-
params
|
|
1513
|
-
},
|
|
1514
|
-
options);
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
/**
|
|
1518
|
-
* Requires members:read scope.
|
|
1519
|
-
* @summary List all workspace members
|
|
1520
|
-
*/
|
|
1521
|
-
const v2WorkspacesControllerGetMembers = (
|
|
1522
|
-
slug: unknown,
|
|
1523
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1524
|
-
return customInstance<void>(
|
|
1525
|
-
{url: `/api/v2/workspaces/${slug}/members`, method: 'GET'
|
|
1526
|
-
},
|
|
1527
|
-
options);
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
/**
|
|
1531
|
-
* Requires members:write scope.
|
|
1532
|
-
* @summary Add a member to the workspace
|
|
1533
|
-
*/
|
|
1534
|
-
const v2WorkspacesControllerAddMember = (
|
|
1535
|
-
slug: unknown,
|
|
1536
|
-
addMemberDto: BodyType<AddMemberDto>,
|
|
1537
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1538
|
-
return customInstance<void>(
|
|
1539
|
-
{url: `/api/v2/workspaces/${slug}/members`, method: 'POST',
|
|
1540
|
-
headers: {'Content-Type': 'application/json', },
|
|
1541
|
-
data: addMemberDto
|
|
1542
|
-
},
|
|
1543
|
-
options);
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
/**
|
|
1547
|
-
* Requires members:read scope.
|
|
1548
|
-
* @summary Get details of a specific workspace member
|
|
1549
|
-
*/
|
|
1550
|
-
const v2WorkspacesControllerGetMember = (
|
|
1551
|
-
slug: unknown,
|
|
1552
|
-
userId: string,
|
|
1553
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1554
|
-
return customInstance<void>(
|
|
1555
|
-
{url: `/api/v2/workspaces/${slug}/members/${userId}`, method: 'GET'
|
|
1556
|
-
},
|
|
1557
|
-
options);
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* Requires members:write scope.
|
|
1562
|
-
* @summary Remove a member from the workspace
|
|
1563
|
-
*/
|
|
1564
|
-
const v2WorkspacesControllerRemoveMember = (
|
|
1565
|
-
slug: unknown,
|
|
1566
|
-
userId: string,
|
|
1567
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1568
|
-
return customInstance<void>(
|
|
1569
|
-
{url: `/api/v2/workspaces/${slug}/members/${userId}`, method: 'DELETE'
|
|
1570
|
-
},
|
|
1571
|
-
options);
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
/**
|
|
1575
|
-
* Requires channels:read scope.
|
|
1576
|
-
* @summary List all channels in the workspace
|
|
1577
|
-
*/
|
|
1578
|
-
const v2MessagesControllerGetChannels = (
|
|
1579
|
-
slug: unknown,
|
|
1580
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1581
|
-
return customInstance<void>(
|
|
1582
|
-
{url: `/api/v2/workspaces/${slug}/channels`, method: 'GET'
|
|
1583
|
-
},
|
|
1584
|
-
options);
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
/**
|
|
1588
|
-
* Requires channels:write scope.
|
|
1589
|
-
* @summary Create a new channel
|
|
1590
|
-
*/
|
|
1591
|
-
const v2MessagesControllerCreateChannel = (
|
|
1592
|
-
slug: unknown,
|
|
1593
|
-
createChannelDto: BodyType<CreateChannelDto>,
|
|
1594
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1595
|
-
return customInstance<void>(
|
|
1596
|
-
{url: `/api/v2/workspaces/${slug}/channels`, method: 'POST',
|
|
1597
|
-
headers: {'Content-Type': 'application/json', },
|
|
1598
|
-
data: createChannelDto
|
|
1599
|
-
},
|
|
1600
|
-
options);
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
/**
|
|
1604
|
-
* Requires channels:write scope.
|
|
1605
|
-
* @summary Upload a channel icon
|
|
1606
|
-
*/
|
|
1607
|
-
const v2MessagesControllerUploadChannelIcon = (
|
|
1608
|
-
slug: unknown,
|
|
1609
|
-
channelId: string,
|
|
1610
|
-
v2MessagesControllerUploadChannelIconBody: BodyType<V2MessagesControllerUploadChannelIconBody>,
|
|
1611
|
-
options?: SecondParameter<typeof customInstance>,) => {const formData = new FormData();
|
|
1612
|
-
if(v2MessagesControllerUploadChannelIconBody.file !== undefined) {
|
|
1613
|
-
formData.append('file', v2MessagesControllerUploadChannelIconBody.file)
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
return customInstance<void>(
|
|
1617
|
-
{url: `/api/v2/workspaces/${slug}/channels/${channelId}/icon`, method: 'POST',
|
|
1618
|
-
headers: {'Content-Type': 'multipart/form-data', },
|
|
1619
|
-
data: formData
|
|
1620
|
-
},
|
|
1621
|
-
options);
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* Requires channels:read scope.
|
|
1626
|
-
* @summary Get details of a specific channel
|
|
1627
|
-
*/
|
|
1628
|
-
const v2MessagesControllerGetChannel = (
|
|
1629
|
-
slug: unknown,
|
|
1630
|
-
channelId: string,
|
|
1631
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1632
|
-
return customInstance<void>(
|
|
1633
|
-
{url: `/api/v2/workspaces/${slug}/channels/${channelId}`, method: 'GET'
|
|
1634
|
-
},
|
|
1635
|
-
options);
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
/**
|
|
1639
|
-
* Requires channels:write scope.
|
|
1640
|
-
* @summary Update a channel
|
|
1641
|
-
*/
|
|
1642
|
-
const v2MessagesControllerUpdateChannel = (
|
|
1643
|
-
slug: unknown,
|
|
1644
|
-
channelId: string,
|
|
1645
|
-
updateChannelDto: BodyType<UpdateChannelDto>,
|
|
1646
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1647
|
-
return customInstance<void>(
|
|
1648
|
-
{url: `/api/v2/workspaces/${slug}/channels/${channelId}`, method: 'PATCH',
|
|
1649
|
-
headers: {'Content-Type': 'application/json', },
|
|
1650
|
-
data: updateChannelDto
|
|
1651
|
-
},
|
|
1652
|
-
options);
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* Requires channels:write scope.
|
|
1657
|
-
* @summary Delete a channel
|
|
1658
|
-
*/
|
|
1659
|
-
const v2MessagesControllerDeleteChannel = (
|
|
1660
|
-
slug: unknown,
|
|
1661
|
-
channelId: string,
|
|
1662
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1663
|
-
return customInstance<void>(
|
|
1664
|
-
{url: `/api/v2/workspaces/${slug}/channels/${channelId}`, method: 'DELETE'
|
|
1665
|
-
},
|
|
1666
|
-
options);
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* Requires messages:read scope.
|
|
1671
|
-
* @summary List messages in the workspace
|
|
1672
|
-
*/
|
|
1673
|
-
const v2MessagesControllerGetMessages = (
|
|
1674
|
-
slug: unknown,
|
|
1675
|
-
params?: V2MessagesControllerGetMessagesParams,
|
|
1676
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1677
|
-
return customInstance<void>(
|
|
1678
|
-
{url: `/api/v2/workspaces/${slug}/messages`, method: 'GET',
|
|
1679
|
-
params
|
|
1680
|
-
},
|
|
1681
|
-
options);
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
/**
|
|
1685
|
-
*
|
|
1686
|
-
Requires messages:send scope. Supports multipart/form-data for file uploads.
|
|
1687
|
-
|
|
1688
|
-
**M2M Behavior:**
|
|
1689
|
-
- If the request is made by an M2M application, the message is sent by the app's associated bot.
|
|
1690
|
-
- If no app bot exists, it falls back to the workspace's **Default Bot**.
|
|
1691
|
-
- You can include `actions` to create interactive buttons that trigger webhooks.
|
|
1692
|
-
|
|
1693
|
-
* @summary Send a message
|
|
1694
|
-
*/
|
|
1695
|
-
const v2MessagesControllerSendMessage = (
|
|
1696
|
-
slug: unknown,
|
|
1697
|
-
sendMessageDto: BodyType<SendMessageDto>,
|
|
1698
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1699
|
-
return customInstance<void>(
|
|
1700
|
-
{url: `/api/v2/workspaces/${slug}/messages`, method: 'POST',
|
|
1701
|
-
headers: {'Content-Type': 'application/json', },
|
|
1702
|
-
data: sendMessageDto
|
|
1703
|
-
},
|
|
1704
|
-
options);
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
/**
|
|
1708
|
-
* Requires members:read scope.
|
|
1709
|
-
* @summary Search for members in the workspace
|
|
1710
|
-
*/
|
|
1711
|
-
const v2SearchControllerSearchMembers = (
|
|
1712
|
-
slug: unknown,
|
|
1713
|
-
params: V2SearchControllerSearchMembersParams,
|
|
1714
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1715
|
-
return customInstance<void>(
|
|
1716
|
-
{url: `/api/v2/workspaces/${slug}/search/members`, method: 'GET',
|
|
1717
|
-
params
|
|
1718
|
-
},
|
|
1719
|
-
options);
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
/**
|
|
1723
|
-
* Requires messages:read scope.
|
|
1724
|
-
* @summary Search for messages in the workspace
|
|
1725
|
-
*/
|
|
1726
|
-
const v2SearchControllerSearchMessages = (
|
|
1727
|
-
slug: unknown,
|
|
1728
|
-
params: V2SearchControllerSearchMessagesParams,
|
|
1729
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1730
|
-
return customInstance<void>(
|
|
1731
|
-
{url: `/api/v2/workspaces/${slug}/search/messages`, method: 'GET',
|
|
1732
|
-
params
|
|
1733
|
-
},
|
|
1734
|
-
options);
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
/**
|
|
1738
|
-
* Requires tokens:read scope.
|
|
1739
|
-
* @summary List all API tokens in the workspace
|
|
1740
|
-
*/
|
|
1741
|
-
const v2ApiTokensControllerGetTokens = (
|
|
1742
|
-
slug: unknown,
|
|
1743
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1744
|
-
return customInstance<void>(
|
|
1745
|
-
{url: `/api/v2/workspaces/${slug}/api-tokens`, method: 'GET'
|
|
1746
|
-
},
|
|
1747
|
-
options);
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
/**
|
|
1751
|
-
* Requires tokens:write scope.
|
|
1752
|
-
* @summary Create a new API token
|
|
1753
|
-
*/
|
|
1754
|
-
const v2ApiTokensControllerCreateToken = (
|
|
1755
|
-
slug: unknown,
|
|
1756
|
-
createTokenDto: BodyType<CreateTokenDto>,
|
|
1757
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1758
|
-
return customInstance<void>(
|
|
1759
|
-
{url: `/api/v2/workspaces/${slug}/api-tokens`, method: 'POST',
|
|
1760
|
-
headers: {'Content-Type': 'application/json', },
|
|
1761
|
-
data: createTokenDto
|
|
1762
|
-
},
|
|
1763
|
-
options);
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
/**
|
|
1767
|
-
* Requires tokens:write scope.
|
|
1768
|
-
* @summary Delete an API token
|
|
1769
|
-
*/
|
|
1770
|
-
const v2ApiTokensControllerDeleteToken = (
|
|
1771
|
-
slug: unknown,
|
|
1772
|
-
tokenId: string,
|
|
1773
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1774
|
-
return customInstance<void>(
|
|
1775
|
-
{url: `/api/v2/workspaces/${slug}/api-tokens/${tokenId}`, method: 'DELETE'
|
|
1776
|
-
},
|
|
1777
|
-
options);
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
/**
|
|
1781
|
-
* Requires tokens:write scope.
|
|
1782
|
-
* @summary Rotate an API token (generate new token value)
|
|
1783
|
-
*/
|
|
1784
|
-
const v2ApiTokensControllerRotateToken = (
|
|
1785
|
-
slug: unknown,
|
|
1786
|
-
tokenId: string,
|
|
1787
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1788
|
-
return customInstance<void>(
|
|
1789
|
-
{url: `/api/v2/workspaces/${slug}/api-tokens/${tokenId}/rotate`, method: 'POST'
|
|
1790
|
-
},
|
|
1791
|
-
options);
|
|
1792
|
-
}
|
|
1793
1026
|
|
|
1027
|
+
export const getSkyrmeChatAPI = () => {
|
|
1794
1028
|
/**
|
|
1795
|
-
*
|
|
1796
|
-
Requires webhooks:read scope.
|
|
1797
|
-
List all webhooks configured for this workspace.
|
|
1798
|
-
|
|
1799
|
-
**Supported Events:**
|
|
1800
|
-
- `message.sent`: Triggered when a new message is sent.
|
|
1801
|
-
- `message.updated`: Triggered when a message is edited or updated by a callback.
|
|
1802
|
-
- `message.action`: Triggered when a user clicks an interactive button on a message.
|
|
1803
|
-
- `channel.created`: Triggered when a new channel is created.
|
|
1804
|
-
- `channel.updated`: Triggered when channel details change.
|
|
1805
|
-
- `member.joined`: Triggered when a new member joins the workspace.
|
|
1806
|
-
- `member.left`: Triggered when a member leaves the workspace.
|
|
1807
|
-
|
|
1808
|
-
* @summary List all webhooks in the workspace
|
|
1029
|
+
* @summary Check health
|
|
1809
1030
|
*/
|
|
1810
|
-
const
|
|
1811
|
-
slug: unknown,
|
|
1812
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1813
|
-
return customInstance<void>(
|
|
1814
|
-
{url: `/api/v2/workspaces/${slug}/webhooks`, method: 'GET'
|
|
1815
|
-
},
|
|
1816
|
-
options);
|
|
1817
|
-
}
|
|
1031
|
+
const appControllerGetHealth = (
|
|
1818
1032
|
|
|
1819
|
-
/**
|
|
1820
|
-
* Requires webhooks:write scope.
|
|
1821
|
-
* @summary Create a new webhook
|
|
1822
|
-
*/
|
|
1823
|
-
const v2WebhooksControllerCreateWebhook = (
|
|
1824
|
-
slug: unknown,
|
|
1825
|
-
createWebhookDto: BodyType<CreateWebhookDto>,
|
|
1826
1033
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
1827
1034
|
return customInstance<void>(
|
|
1828
|
-
{url: `/api/
|
|
1829
|
-
headers: {'Content-Type': 'application/json', },
|
|
1830
|
-
data: createWebhookDto
|
|
1035
|
+
{url: `/api/health`, method: 'GET'
|
|
1831
1036
|
},
|
|
1832
1037
|
options);
|
|
1833
1038
|
}
|
|
1834
1039
|
|
|
1835
1040
|
/**
|
|
1836
|
-
*
|
|
1837
|
-
* @summary Get details of a specific webhook
|
|
1041
|
+
* @summary Hello
|
|
1838
1042
|
*/
|
|
1839
|
-
const
|
|
1840
|
-
slug: unknown,
|
|
1841
|
-
webhookId: string,
|
|
1842
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1843
|
-
return customInstance<void>(
|
|
1844
|
-
{url: `/api/v2/workspaces/${slug}/webhooks/${webhookId}`, method: 'GET'
|
|
1845
|
-
},
|
|
1846
|
-
options);
|
|
1847
|
-
}
|
|
1043
|
+
const appControllerGetHello = (
|
|
1848
1044
|
|
|
1849
|
-
/**
|
|
1850
|
-
* Requires webhooks:write scope.
|
|
1851
|
-
* @summary Update a webhook
|
|
1852
|
-
*/
|
|
1853
|
-
const v2WebhooksControllerUpdateWebhook = (
|
|
1854
|
-
slug: unknown,
|
|
1855
|
-
webhookId: string,
|
|
1856
|
-
updateWebhookDto: BodyType<UpdateWebhookDto>,
|
|
1857
1045
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
1858
1046
|
return customInstance<void>(
|
|
1859
|
-
{url: `/api
|
|
1860
|
-
headers: {'Content-Type': 'application/json', },
|
|
1861
|
-
data: updateWebhookDto
|
|
1047
|
+
{url: `/api`, method: 'GET'
|
|
1862
1048
|
},
|
|
1863
1049
|
options);
|
|
1864
1050
|
}
|
|
1865
1051
|
|
|
1866
1052
|
/**
|
|
1867
|
-
*
|
|
1868
|
-
* @summary Delete a webhook
|
|
1053
|
+
* @summary Get realtime configuration
|
|
1869
1054
|
*/
|
|
1870
|
-
const
|
|
1871
|
-
slug: unknown,
|
|
1872
|
-
webhookId: string,
|
|
1873
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1874
|
-
return customInstance<void>(
|
|
1875
|
-
{url: `/api/v2/workspaces/${slug}/webhooks/${webhookId}`, method: 'DELETE'
|
|
1876
|
-
},
|
|
1877
|
-
options);
|
|
1878
|
-
}
|
|
1055
|
+
const appControllerGetRealtimeConfig = (
|
|
1879
1056
|
|
|
1880
|
-
/**
|
|
1881
|
-
* Requires threads:read scope.
|
|
1882
|
-
* @summary List all threads in the workspace
|
|
1883
|
-
*/
|
|
1884
|
-
const v2ThreadsControllerGetThreads = (
|
|
1885
|
-
slug: unknown,
|
|
1886
|
-
params?: V2ThreadsControllerGetThreadsParams,
|
|
1887
1057
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
1888
1058
|
return customInstance<void>(
|
|
1889
|
-
{url: `/api/
|
|
1890
|
-
params
|
|
1059
|
+
{url: `/api/config/realtime`, method: 'GET'
|
|
1891
1060
|
},
|
|
1892
1061
|
options);
|
|
1893
1062
|
}
|
|
1894
1063
|
|
|
1895
1064
|
/**
|
|
1896
|
-
*
|
|
1897
|
-
* @summary List messages in a thread
|
|
1065
|
+
* @summary Get link preview metadata for a URL
|
|
1898
1066
|
*/
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1901
|
-
threadId: string,
|
|
1902
|
-
params?: V2ThreadsControllerGetThreadMessagesParams,
|
|
1067
|
+
const appControllerGetLinkPreview = (
|
|
1068
|
+
params: AppControllerGetLinkPreviewParams,
|
|
1903
1069
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
1904
1070
|
return customInstance<void>(
|
|
1905
|
-
{url: `/api/
|
|
1071
|
+
{url: `/api/link-preview`, method: 'GET',
|
|
1906
1072
|
params
|
|
1907
1073
|
},
|
|
1908
1074
|
options);
|
|
1909
1075
|
}
|
|
1910
1076
|
|
|
1911
1077
|
/**
|
|
1912
|
-
*
|
|
1913
|
-
* @summary Get a thread by its context ID
|
|
1914
|
-
*/
|
|
1915
|
-
const v2ThreadsControllerGetThreadByContext = (
|
|
1916
|
-
slug: unknown,
|
|
1917
|
-
contextId: string,
|
|
1918
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1919
|
-
return customInstance<void>(
|
|
1920
|
-
{url: `/api/v2/workspaces/${slug}/threads/context/${contextId}`, method: 'GET'
|
|
1921
|
-
},
|
|
1922
|
-
options);
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
/**
|
|
1926
|
-
*
|
|
1927
|
-
Triggers a custom action associated with a message.
|
|
1928
|
-
|
|
1929
|
-
**M2M Interactivity:**
|
|
1930
|
-
If the message was sent by an M2M application, triggering an action will:
|
|
1931
|
-
1. Dispatch a **Callback** to the M2M application's configured `webhookUrl`.
|
|
1932
|
-
2. The callback includes the `formState` and `payload` provided in the request.
|
|
1933
|
-
3. The M2M application can respond to the callback to **update the message** content or metadata in real-time.
|
|
1934
|
-
|
|
1935
|
-
* @summary Trigger a message action
|
|
1078
|
+
* @summary Get all users
|
|
1936
1079
|
*/
|
|
1937
|
-
const
|
|
1938
|
-
slug: unknown,
|
|
1939
|
-
messageId: string,
|
|
1940
|
-
actionId: string,
|
|
1941
|
-
v2MessageActionsControllerHandleActionBody?: BodyType<V2MessageActionsControllerHandleActionBody>,
|
|
1942
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1943
|
-
return customInstance<void>(
|
|
1944
|
-
{url: `/api/v2/workspaces/${slug}/messages/${messageId}/actions/${actionId}`, method: 'POST',
|
|
1945
|
-
headers: {'Content-Type': 'application/json', },
|
|
1946
|
-
data: v2MessageActionsControllerHandleActionBody
|
|
1947
|
-
},
|
|
1948
|
-
options);
|
|
1949
|
-
}
|
|
1080
|
+
const usersControllerGetUsers = (
|
|
1950
1081
|
|
|
1951
|
-
/**
|
|
1952
|
-
* Requires departments:read scope.
|
|
1953
|
-
* @summary List all departments in the workspace
|
|
1954
|
-
*/
|
|
1955
|
-
const v2DepartmentsControllerGetDepartments = (
|
|
1956
|
-
slug: unknown,
|
|
1957
1082
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
1958
1083
|
return customInstance<void>(
|
|
1959
|
-
{url: `/api/
|
|
1084
|
+
{url: `/api/users`, method: 'GET'
|
|
1960
1085
|
},
|
|
1961
1086
|
options);
|
|
1962
1087
|
}
|
|
1963
1088
|
|
|
1964
1089
|
/**
|
|
1965
|
-
*
|
|
1966
|
-
* @summary Create a new department
|
|
1090
|
+
* @summary Search for users by username or name
|
|
1967
1091
|
*/
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
createDepartmentDto: BodyType<CreateDepartmentDto>,
|
|
1092
|
+
const usersControllerSearchUsers = (
|
|
1093
|
+
params: UsersControllerSearchUsersParams,
|
|
1971
1094
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
1972
1095
|
return customInstance<void>(
|
|
1973
|
-
{url: `/api/
|
|
1974
|
-
|
|
1975
|
-
data: createDepartmentDto
|
|
1096
|
+
{url: `/api/users/search`, method: 'GET',
|
|
1097
|
+
params
|
|
1976
1098
|
},
|
|
1977
1099
|
options);
|
|
1978
1100
|
}
|
|
1979
1101
|
|
|
1980
1102
|
/**
|
|
1981
|
-
*
|
|
1982
|
-
* @summary Get details of a specific department
|
|
1103
|
+
* @summary Get current user profile
|
|
1983
1104
|
*/
|
|
1984
|
-
const
|
|
1985
|
-
slug: unknown,
|
|
1986
|
-
departmentId: string,
|
|
1987
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
1988
|
-
return customInstance<void>(
|
|
1989
|
-
{url: `/api/v2/workspaces/${slug}/departments/${departmentId}`, method: 'GET'
|
|
1990
|
-
},
|
|
1991
|
-
options);
|
|
1992
|
-
}
|
|
1105
|
+
const usersControllerGetMe = (
|
|
1993
1106
|
|
|
1994
|
-
/**
|
|
1995
|
-
* Requires departments:write scope.
|
|
1996
|
-
* @summary Update a department
|
|
1997
|
-
*/
|
|
1998
|
-
const v2DepartmentsControllerUpdateDepartment = (
|
|
1999
|
-
slug: unknown,
|
|
2000
|
-
departmentId: string,
|
|
2001
|
-
updateDepartmentDto: BodyType<UpdateDepartmentDto>,
|
|
2002
1107
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2003
1108
|
return customInstance<void>(
|
|
2004
|
-
{url: `/api/
|
|
2005
|
-
headers: {'Content-Type': 'application/json', },
|
|
2006
|
-
data: updateDepartmentDto
|
|
1109
|
+
{url: `/api/users/me`, method: 'GET'
|
|
2007
1110
|
},
|
|
2008
1111
|
options);
|
|
2009
1112
|
}
|
|
2010
1113
|
|
|
2011
1114
|
/**
|
|
2012
|
-
*
|
|
2013
|
-
* @summary Delete a department
|
|
1115
|
+
* @summary Update current user profile
|
|
2014
1116
|
*/
|
|
2015
|
-
const
|
|
2016
|
-
slug: unknown,
|
|
2017
|
-
departmentId: string,
|
|
2018
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
2019
|
-
return customInstance<void>(
|
|
2020
|
-
{url: `/api/v2/workspaces/${slug}/departments/${departmentId}`, method: 'DELETE'
|
|
2021
|
-
},
|
|
2022
|
-
options);
|
|
2023
|
-
}
|
|
1117
|
+
const usersControllerPatchMe = (
|
|
2024
1118
|
|
|
2025
|
-
/**
|
|
2026
|
-
* Requires teams:read scope.
|
|
2027
|
-
* @summary List all teams in the workspace
|
|
2028
|
-
*/
|
|
2029
|
-
const v2TeamsControllerGetTeams = (
|
|
2030
|
-
slug: unknown,
|
|
2031
1119
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2032
1120
|
return customInstance<void>(
|
|
2033
|
-
{url: `/api/
|
|
1121
|
+
{url: `/api/users/me`, method: 'PATCH'
|
|
2034
1122
|
},
|
|
2035
1123
|
options);
|
|
2036
1124
|
}
|
|
2037
1125
|
|
|
2038
1126
|
/**
|
|
2039
|
-
*
|
|
2040
|
-
* @summary Create a new team
|
|
1127
|
+
* @summary Update current user profile
|
|
2041
1128
|
*/
|
|
2042
|
-
const
|
|
2043
|
-
slug: unknown,
|
|
2044
|
-
createTeamDto: BodyType<CreateTeamDto>,
|
|
2045
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
2046
|
-
return customInstance<void>(
|
|
2047
|
-
{url: `/api/v2/workspaces/${slug}/teams`, method: 'POST',
|
|
2048
|
-
headers: {'Content-Type': 'application/json', },
|
|
2049
|
-
data: createTeamDto
|
|
2050
|
-
},
|
|
2051
|
-
options);
|
|
2052
|
-
}
|
|
1129
|
+
const usersControllerUpdateMe = (
|
|
2053
1130
|
|
|
2054
|
-
/**
|
|
2055
|
-
* Requires teams:read scope.
|
|
2056
|
-
* @summary Get details of a specific team
|
|
2057
|
-
*/
|
|
2058
|
-
const v2TeamsControllerGetTeam = (
|
|
2059
|
-
slug: unknown,
|
|
2060
|
-
teamId: string,
|
|
2061
1131
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2062
1132
|
return customInstance<void>(
|
|
2063
|
-
{url: `/api/
|
|
1133
|
+
{url: `/api/users/me`, method: 'POST'
|
|
2064
1134
|
},
|
|
2065
1135
|
options);
|
|
2066
1136
|
}
|
|
2067
1137
|
|
|
2068
1138
|
/**
|
|
2069
|
-
*
|
|
2070
|
-
* @summary Update a team
|
|
1139
|
+
* @summary Get a user profile by ID
|
|
2071
1140
|
*/
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
teamId: string,
|
|
2075
|
-
updateTeamDto: BodyType<UpdateTeamDto>,
|
|
1141
|
+
const usersControllerGetUser = (
|
|
1142
|
+
id: string,
|
|
2076
1143
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2077
1144
|
return customInstance<void>(
|
|
2078
|
-
{url: `/api/
|
|
2079
|
-
headers: {'Content-Type': 'application/json', },
|
|
2080
|
-
data: updateTeamDto
|
|
1145
|
+
{url: `/api/users/${id}`, method: 'GET'
|
|
2081
1146
|
},
|
|
2082
1147
|
options);
|
|
2083
1148
|
}
|
|
2084
1149
|
|
|
2085
1150
|
/**
|
|
2086
|
-
*
|
|
2087
|
-
* @summary Delete a team
|
|
1151
|
+
* @summary Update user profile by ID
|
|
2088
1152
|
*/
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
teamId: string,
|
|
1153
|
+
const usersControllerPatchUser = (
|
|
1154
|
+
id: string,
|
|
2092
1155
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2093
1156
|
return customInstance<void>(
|
|
2094
|
-
{url: `/api/
|
|
1157
|
+
{url: `/api/users/${id}`, method: 'PATCH'
|
|
2095
1158
|
},
|
|
2096
1159
|
options);
|
|
2097
1160
|
}
|
|
2098
1161
|
|
|
2099
1162
|
/**
|
|
2100
|
-
*
|
|
2101
|
-
* @summary List all announcements in the workspace
|
|
1163
|
+
* @summary Get social profile between current user and target user
|
|
2102
1164
|
*/
|
|
2103
|
-
const
|
|
2104
|
-
|
|
1165
|
+
const usersControllerGetSocialProfile = (
|
|
1166
|
+
id: string,
|
|
2105
1167
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2106
1168
|
return customInstance<void>(
|
|
2107
|
-
{url: `/api/
|
|
1169
|
+
{url: `/api/users/${id}/social-profile`, method: 'GET'
|
|
2108
1170
|
},
|
|
2109
1171
|
options);
|
|
2110
1172
|
}
|
|
2111
1173
|
|
|
2112
1174
|
/**
|
|
2113
|
-
*
|
|
2114
|
-
* @summary Create a new announcement
|
|
1175
|
+
* @summary Block a user
|
|
2115
1176
|
*/
|
|
2116
|
-
const
|
|
2117
|
-
|
|
2118
|
-
createAnnouncementDto: BodyType<CreateAnnouncementDto>,
|
|
1177
|
+
const usersControllerBlockUser = (
|
|
1178
|
+
id: string,
|
|
2119
1179
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2120
1180
|
return customInstance<void>(
|
|
2121
|
-
{url: `/api/
|
|
2122
|
-
headers: {'Content-Type': 'application/json', },
|
|
2123
|
-
data: createAnnouncementDto
|
|
1181
|
+
{url: `/api/users/${id}/block`, method: 'POST'
|
|
2124
1182
|
},
|
|
2125
1183
|
options);
|
|
2126
1184
|
}
|
|
2127
1185
|
|
|
2128
1186
|
/**
|
|
2129
|
-
*
|
|
2130
|
-
* @summary Get details of a specific announcement
|
|
1187
|
+
* @summary Unblock a user
|
|
2131
1188
|
*/
|
|
2132
|
-
const
|
|
2133
|
-
|
|
2134
|
-
announcementId: string,
|
|
1189
|
+
const usersControllerUnblockUser = (
|
|
1190
|
+
id: string,
|
|
2135
1191
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2136
1192
|
return customInstance<void>(
|
|
2137
|
-
{url: `/api/
|
|
1193
|
+
{url: `/api/users/${id}/block`, method: 'DELETE'
|
|
2138
1194
|
},
|
|
2139
1195
|
options);
|
|
2140
1196
|
}
|
|
2141
1197
|
|
|
2142
1198
|
/**
|
|
2143
|
-
*
|
|
2144
|
-
* @summary Update an announcement
|
|
1199
|
+
* @summary Update current user status
|
|
2145
1200
|
*/
|
|
2146
|
-
const
|
|
2147
|
-
slug: unknown,
|
|
2148
|
-
announcementId: string,
|
|
2149
|
-
updateAnnouncementDto: BodyType<UpdateAnnouncementDto>,
|
|
2150
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
2151
|
-
return customInstance<void>(
|
|
2152
|
-
{url: `/api/v2/workspaces/${slug}/announcements/${announcementId}`, method: 'PATCH',
|
|
2153
|
-
headers: {'Content-Type': 'application/json', },
|
|
2154
|
-
data: updateAnnouncementDto
|
|
2155
|
-
},
|
|
2156
|
-
options);
|
|
2157
|
-
}
|
|
1201
|
+
const usersControllerUpdateMyStatus = (
|
|
2158
1202
|
|
|
2159
|
-
/**
|
|
2160
|
-
* Requires announcements:write scope.
|
|
2161
|
-
* @summary Delete an announcement
|
|
2162
|
-
*/
|
|
2163
|
-
const v2AnnouncementsControllerDeleteAnnouncement = (
|
|
2164
|
-
slug: unknown,
|
|
2165
|
-
announcementId: string,
|
|
2166
1203
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2167
1204
|
return customInstance<void>(
|
|
2168
|
-
{url: `/api/
|
|
2169
|
-
},
|
|
2170
|
-
options);
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
/**
|
|
2174
|
-
*
|
|
2175
|
-
Used for bot, integration, and M2M authentication.
|
|
2176
|
-
|
|
2177
|
-
**Scopes available:**
|
|
2178
|
-
- `*`: Full access (only for internal system bots).
|
|
2179
|
-
- `provisioning:workspaces`: Ability to create and manage workspaces.
|
|
2180
|
-
- `messages:read`: Read messages in allowed channels.
|
|
2181
|
-
- `messages:send`: Send messages and trigger actions.
|
|
2182
|
-
- `channels:read`: List and view channel details.
|
|
2183
|
-
- `channels:write`: Create and manage channels.
|
|
2184
|
-
- `webhooks:read`: View webhook configurations.
|
|
2185
|
-
- `webhooks:write`: Manage webhooks.
|
|
2186
|
-
|
|
2187
|
-
* @summary Exchange client credentials for an access token
|
|
2188
|
-
*/
|
|
2189
|
-
const v2OAuthControllerGetToken = (
|
|
2190
|
-
tokenRequestDto: BodyType<TokenRequestDto>,
|
|
2191
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
2192
|
-
return customInstance<V2OAuthControllerGetToken200>(
|
|
2193
|
-
{url: `/api/v2/oauth/token`, method: 'POST',
|
|
2194
|
-
headers: {'Content-Type': 'application/json', },
|
|
2195
|
-
data: tokenRequestDto
|
|
1205
|
+
{url: `/api/users/me/status`, method: 'PATCH'
|
|
2196
1206
|
},
|
|
2197
1207
|
options);
|
|
2198
1208
|
}
|
|
2199
1209
|
|
|
2200
1210
|
/**
|
|
2201
|
-
*
|
|
2202
|
-
* @summary Create a new bot application
|
|
1211
|
+
* @summary Register a device token for push notifications
|
|
2203
1212
|
*/
|
|
2204
|
-
const
|
|
2205
|
-
|
|
1213
|
+
const usersControllerRegisterDeviceToken = (
|
|
1214
|
+
usersControllerRegisterDeviceTokenBody: BodyType<UsersControllerRegisterDeviceTokenBody>,
|
|
2206
1215
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2207
1216
|
return customInstance<void>(
|
|
2208
|
-
{url: `/api/
|
|
1217
|
+
{url: `/api/users/me/device-tokens`, method: 'POST',
|
|
2209
1218
|
headers: {'Content-Type': 'application/json', },
|
|
2210
|
-
data:
|
|
1219
|
+
data: usersControllerRegisterDeviceTokenBody
|
|
2211
1220
|
},
|
|
2212
1221
|
options);
|
|
2213
1222
|
}
|
|
2214
1223
|
|
|
2215
1224
|
/**
|
|
2216
|
-
* @summary
|
|
1225
|
+
* @summary Get active device tokens for the current user
|
|
2217
1226
|
*/
|
|
2218
|
-
const
|
|
1227
|
+
const usersControllerGetDeviceTokens = (
|
|
2219
1228
|
|
|
2220
1229
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2221
1230
|
return customInstance<void>(
|
|
2222
|
-
{url: `/api/
|
|
1231
|
+
{url: `/api/users/me/device-tokens`, method: 'GET'
|
|
2223
1232
|
},
|
|
2224
1233
|
options);
|
|
2225
1234
|
}
|
|
2226
1235
|
|
|
2227
1236
|
/**
|
|
2228
|
-
* @summary
|
|
1237
|
+
* @summary Deactivate a device token
|
|
2229
1238
|
*/
|
|
2230
|
-
const
|
|
2231
|
-
|
|
1239
|
+
const usersControllerDeleteDeviceToken = (
|
|
1240
|
+
params: UsersControllerDeleteDeviceTokenParams,
|
|
2232
1241
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2233
1242
|
return customInstance<void>(
|
|
2234
|
-
{url: `/api/
|
|
1243
|
+
{url: `/api/users/me/device-tokens`, method: 'DELETE',
|
|
1244
|
+
params
|
|
2235
1245
|
},
|
|
2236
1246
|
options);
|
|
2237
1247
|
}
|
|
2238
1248
|
|
|
2239
|
-
|
|
2240
|
-
* @summary Update a bot application
|
|
2241
|
-
*/
|
|
2242
|
-
const v2ApplicationsControllerUpdateApplication = (
|
|
1249
|
+
const v10UsersControllerGetUser = (
|
|
2243
1250
|
id: string,
|
|
2244
|
-
updateApplicationDto: BodyType<UpdateApplicationDto>,
|
|
2245
1251
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2246
1252
|
return customInstance<void>(
|
|
2247
|
-
{url: `/api/
|
|
2248
|
-
headers: {'Content-Type': 'application/json', },
|
|
2249
|
-
data: updateApplicationDto
|
|
1253
|
+
{url: `/api/bot/v10/users/${id}`, method: 'GET'
|
|
2250
1254
|
},
|
|
2251
1255
|
options);
|
|
2252
1256
|
}
|
|
2253
1257
|
|
|
2254
|
-
|
|
2255
|
-
* @summary Delete a bot application
|
|
2256
|
-
*/
|
|
2257
|
-
const v2ApplicationsControllerDeleteApplication = (
|
|
2258
|
-
id: string,
|
|
2259
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
2260
|
-
return customInstance<void>(
|
|
2261
|
-
{url: `/api/v2/applications/${id}/delete`, method: 'POST'
|
|
2262
|
-
},
|
|
2263
|
-
options);
|
|
2264
|
-
}
|
|
1258
|
+
const v10UsersControllerGetMe = (
|
|
2265
1259
|
|
|
2266
|
-
/**
|
|
2267
|
-
* @summary Reset the bot user token
|
|
2268
|
-
*/
|
|
2269
|
-
const v2ApplicationsControllerResetBotToken = (
|
|
2270
|
-
id: string,
|
|
2271
1260
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2272
1261
|
return customInstance<void>(
|
|
2273
|
-
{url: `/api/
|
|
1262
|
+
{url: `/api/bot/v10/users/@me`, method: 'GET'
|
|
2274
1263
|
},
|
|
2275
1264
|
options);
|
|
2276
1265
|
}
|
|
2277
1266
|
|
|
2278
|
-
|
|
2279
|
-
* @summary Install the bot into a workspace
|
|
2280
|
-
*/
|
|
2281
|
-
const v2ApplicationsControllerInstallBot = (
|
|
2282
|
-
id: string,
|
|
2283
|
-
v2ApplicationsControllerInstallBotBody: BodyType<V2ApplicationsControllerInstallBotBody>,
|
|
2284
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
2285
|
-
return customInstance<void>(
|
|
2286
|
-
{url: `/api/v2/applications/${id}/install`, method: 'POST',
|
|
2287
|
-
headers: {'Content-Type': 'application/json', },
|
|
2288
|
-
data: v2ApplicationsControllerInstallBotBody
|
|
2289
|
-
},
|
|
2290
|
-
options);
|
|
2291
|
-
}
|
|
1267
|
+
const v10GatewayControllerGetBotGateway = (
|
|
2292
1268
|
|
|
2293
|
-
/**
|
|
2294
|
-
* @summary Submit a contact form
|
|
2295
|
-
*/
|
|
2296
|
-
const v2ContactControllerSubmitContactForm = (
|
|
2297
|
-
v2ContactControllerSubmitContactFormBody: BodyType<V2ContactControllerSubmitContactFormBody>,
|
|
2298
1269
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2299
1270
|
return customInstance<void>(
|
|
2300
|
-
{url: `/api/
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
}
|
|
2304
|
-
options);
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
/**
|
|
2308
|
-
*
|
|
2309
|
-
Provisions a new workspace within your organization.
|
|
2310
|
-
When provisioned via M2M:
|
|
2311
|
-
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
2312
|
-
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
2313
|
-
3. The specified owner and initial members are added (must belong to the same organization).
|
|
1271
|
+
{url: `/api/bot/v10/gateway/bot`, method: 'GET'
|
|
1272
|
+
},
|
|
1273
|
+
options);
|
|
1274
|
+
}
|
|
2314
1275
|
|
|
2315
|
-
|
|
1276
|
+
const v10GatewayControllerBotAuth = (
|
|
2316
1277
|
|
|
2317
|
-
* @summary Provision a new workspace (Enterprise M2M)
|
|
2318
|
-
*/
|
|
2319
|
-
const provisioningControllerProvisionWorkspace = (
|
|
2320
|
-
provisionWorkspaceDto: BodyType<ProvisionWorkspaceDto>,
|
|
2321
1278
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2322
1279
|
return customInstance<void>(
|
|
2323
|
-
{url: `/api/
|
|
2324
|
-
headers: {'Content-Type': 'application/json', },
|
|
2325
|
-
data: provisionWorkspaceDto
|
|
1280
|
+
{url: `/api/bot/v10/gateway/auth`, method: 'POST'
|
|
2326
1281
|
},
|
|
2327
1282
|
options);
|
|
2328
1283
|
}
|
|
2329
1284
|
|
|
2330
1285
|
/**
|
|
2331
|
-
* @summary
|
|
1286
|
+
* @summary Get channel details
|
|
2332
1287
|
*/
|
|
2333
|
-
const
|
|
2334
|
-
|
|
1288
|
+
const v10ChannelsControllerGetChannel = (
|
|
1289
|
+
id: string,
|
|
2335
1290
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2336
1291
|
return customInstance<void>(
|
|
2337
|
-
{url: `/api/
|
|
1292
|
+
{url: `/api/bot/v10/channels/${id}`, method: 'GET'
|
|
2338
1293
|
},
|
|
2339
1294
|
options);
|
|
2340
1295
|
}
|
|
2341
1296
|
|
|
2342
1297
|
/**
|
|
2343
|
-
* @summary
|
|
1298
|
+
* @summary Send a message to a channel
|
|
2344
1299
|
*/
|
|
2345
|
-
const
|
|
2346
|
-
|
|
1300
|
+
const v10ChannelsControllerCreateMessage = (
|
|
1301
|
+
id: string,
|
|
2347
1302
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2348
1303
|
return customInstance<void>(
|
|
2349
|
-
{url: `/api/
|
|
1304
|
+
{url: `/api/bot/v10/channels/${id}/messages`, method: 'POST'
|
|
2350
1305
|
},
|
|
2351
1306
|
options);
|
|
2352
1307
|
}
|
|
2353
1308
|
|
|
2354
1309
|
/**
|
|
2355
|
-
* @summary
|
|
1310
|
+
* @summary Get messages from a channel
|
|
2356
1311
|
*/
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2359
|
-
|
|
1312
|
+
const v10ChannelsControllerGetMessages = (
|
|
1313
|
+
id: string,
|
|
1314
|
+
params?: V10ChannelsControllerGetMessagesParams,
|
|
2360
1315
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2361
1316
|
return customInstance<void>(
|
|
2362
|
-
{url: `/api/
|
|
2363
|
-
|
|
2364
|
-
data: updateOrganizationDto
|
|
1317
|
+
{url: `/api/bot/v10/channels/${id}/messages`, method: 'GET',
|
|
1318
|
+
params
|
|
2365
1319
|
},
|
|
2366
1320
|
options);
|
|
2367
1321
|
}
|
|
2368
1322
|
|
|
2369
1323
|
/**
|
|
2370
|
-
* @summary
|
|
1324
|
+
* @summary Update a message
|
|
2371
1325
|
*/
|
|
2372
|
-
const
|
|
2373
|
-
|
|
1326
|
+
const v10ChannelsControllerUpdateMessage = (
|
|
1327
|
+
id: string,
|
|
1328
|
+
messageId: string,
|
|
2374
1329
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2375
1330
|
return customInstance<void>(
|
|
2376
|
-
{url: `/api/
|
|
1331
|
+
{url: `/api/bot/v10/channels/${id}/messages/${messageId}`, method: 'PATCH'
|
|
2377
1332
|
},
|
|
2378
1333
|
options);
|
|
2379
1334
|
}
|
|
2380
1335
|
|
|
2381
1336
|
/**
|
|
2382
|
-
* @summary
|
|
1337
|
+
* @summary Delete a message
|
|
2383
1338
|
*/
|
|
2384
|
-
const
|
|
1339
|
+
const v10ChannelsControllerDeleteMessage = (
|
|
2385
1340
|
id: string,
|
|
1341
|
+
messageId: string,
|
|
2386
1342
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2387
1343
|
return customInstance<void>(
|
|
2388
|
-
{url: `/api/
|
|
1344
|
+
{url: `/api/bot/v10/channels/${id}/messages/${messageId}`, method: 'DELETE'
|
|
2389
1345
|
},
|
|
2390
1346
|
options);
|
|
2391
1347
|
}
|
|
2392
1348
|
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
*/
|
|
2396
|
-
const integrationsControllerGetStats = (
|
|
2397
|
-
|
|
1349
|
+
const v10GuildsControllerGetGuild = (
|
|
1350
|
+
guildId: string,
|
|
2398
1351
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2399
1352
|
return customInstance<void>(
|
|
2400
|
-
{url: `/api/
|
|
1353
|
+
{url: `/api/bot/v10/guilds/${guildId}`, method: 'GET'
|
|
2401
1354
|
},
|
|
2402
1355
|
options);
|
|
2403
1356
|
}
|
|
2404
1357
|
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
*/
|
|
2408
|
-
const integrationsControllerGetWebhooks = (
|
|
2409
|
-
|
|
1358
|
+
const v10GuildsControllerGetChannels = (
|
|
1359
|
+
guildId: string,
|
|
2410
1360
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2411
1361
|
return customInstance<void>(
|
|
2412
|
-
{url: `/api/
|
|
1362
|
+
{url: `/api/bot/v10/guilds/${guildId}/channels`, method: 'GET'
|
|
2413
1363
|
},
|
|
2414
1364
|
options);
|
|
2415
1365
|
}
|
|
2416
1366
|
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
*/
|
|
2420
|
-
const integrationsControllerCreateWebhook = (
|
|
2421
|
-
createIntegrationWebhookDto: BodyType<CreateIntegrationWebhookDto>,
|
|
1367
|
+
const v10GuildsControllerGetMembers = (
|
|
1368
|
+
guildId: string,
|
|
2422
1369
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2423
1370
|
return customInstance<void>(
|
|
2424
|
-
{url: `/api/
|
|
2425
|
-
headers: {'Content-Type': 'application/json', },
|
|
2426
|
-
data: createIntegrationWebhookDto
|
|
1371
|
+
{url: `/api/bot/v10/guilds/${guildId}/members`, method: 'GET'
|
|
2427
1372
|
},
|
|
2428
1373
|
options);
|
|
2429
1374
|
}
|
|
2430
1375
|
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
*/
|
|
2434
|
-
const integrationsControllerUpdateWebhook = (
|
|
2435
|
-
webhookId: string,
|
|
1376
|
+
const v10GuildsControllerGetRoles = (
|
|
1377
|
+
guildId: string,
|
|
2436
1378
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2437
1379
|
return customInstance<void>(
|
|
2438
|
-
{url: `/api/
|
|
1380
|
+
{url: `/api/bot/v10/guilds/${guildId}/roles`, method: 'GET'
|
|
2439
1381
|
},
|
|
2440
1382
|
options);
|
|
2441
1383
|
}
|
|
2442
1384
|
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
webhookId: string,
|
|
1385
|
+
const v10GuildsControllerAddMemberRole = (
|
|
1386
|
+
guildId: string,
|
|
1387
|
+
userId: string,
|
|
1388
|
+
roleId: string,
|
|
2448
1389
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2449
1390
|
return customInstance<void>(
|
|
2450
|
-
{url: `/api/
|
|
1391
|
+
{url: `/api/bot/v10/guilds/${guildId}/members/${userId}/roles/${roleId}`, method: 'PUT'
|
|
2451
1392
|
},
|
|
2452
1393
|
options);
|
|
2453
1394
|
}
|
|
2454
1395
|
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
webhookId: string,
|
|
1396
|
+
const v10GuildsControllerRemoveMemberRole = (
|
|
1397
|
+
guildId: string,
|
|
1398
|
+
userId: string,
|
|
1399
|
+
roleId: string,
|
|
2460
1400
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2461
1401
|
return customInstance<void>(
|
|
2462
|
-
{url: `/api/
|
|
1402
|
+
{url: `/api/bot/v10/guilds/${guildId}/members/${userId}/roles/${roleId}`, method: 'DELETE'
|
|
2463
1403
|
},
|
|
2464
1404
|
options);
|
|
2465
1405
|
}
|
|
2466
1406
|
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
*/
|
|
2470
|
-
const integrationsControllerGetApiKeys = (
|
|
2471
|
-
|
|
1407
|
+
const v10ApplicationsControllerGetCommands = (
|
|
1408
|
+
id: string,
|
|
2472
1409
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2473
1410
|
return customInstance<void>(
|
|
2474
|
-
{url: `/api/
|
|
1411
|
+
{url: `/api/bot/v10/applications/${id}/commands`, method: 'GET'
|
|
2475
1412
|
},
|
|
2476
1413
|
options);
|
|
2477
1414
|
}
|
|
2478
1415
|
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
*/
|
|
2482
|
-
const integrationsControllerUpdateApiKey = (
|
|
2483
|
-
keyId: string,
|
|
1416
|
+
const v10ApplicationsControllerCreateCommand = (
|
|
1417
|
+
id: string,
|
|
2484
1418
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2485
1419
|
return customInstance<void>(
|
|
2486
|
-
{url: `/api/
|
|
1420
|
+
{url: `/api/bot/v10/applications/${id}/commands`, method: 'POST'
|
|
2487
1421
|
},
|
|
2488
1422
|
options);
|
|
2489
1423
|
}
|
|
2490
1424
|
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
const integrationsControllerDeleteApiKey = (
|
|
2495
|
-
keyId: string,
|
|
1425
|
+
const v10ApplicationsControllerGetGuildCommands = (
|
|
1426
|
+
id: string,
|
|
1427
|
+
guildId: string,
|
|
2496
1428
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2497
1429
|
return customInstance<void>(
|
|
2498
|
-
{url: `/api/
|
|
1430
|
+
{url: `/api/bot/v10/applications/${id}/guilds/${guildId}/commands`, method: 'GET'
|
|
2499
1431
|
},
|
|
2500
1432
|
options);
|
|
2501
1433
|
}
|
|
2502
1434
|
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
const workspaceIntegrationsControllerGetWorkspaceIntegrations = (
|
|
2507
|
-
slug: string,
|
|
1435
|
+
const v10ApplicationsControllerCreateGuildCommand = (
|
|
1436
|
+
id: string,
|
|
1437
|
+
guildId: string,
|
|
2508
1438
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2509
1439
|
return customInstance<void>(
|
|
2510
|
-
{url: `/api/
|
|
1440
|
+
{url: `/api/bot/v10/applications/${id}/guilds/${guildId}/commands`, method: 'POST'
|
|
2511
1441
|
},
|
|
2512
1442
|
options);
|
|
2513
1443
|
}
|
|
2514
1444
|
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
const workspaceIntegrationsControllerCreateWorkspaceIntegration = (
|
|
2519
|
-
slug: string,
|
|
2520
|
-
createIntegrationDto: BodyType<CreateIntegrationDto>,
|
|
1445
|
+
const v10InteractionsControllerHandleCallback = (
|
|
1446
|
+
id: string,
|
|
1447
|
+
token: string,
|
|
2521
1448
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2522
1449
|
return customInstance<void>(
|
|
2523
|
-
{url: `/api/
|
|
2524
|
-
headers: {'Content-Type': 'application/json', },
|
|
2525
|
-
data: createIntegrationDto
|
|
1450
|
+
{url: `/api/bot/v10/interactions/${id}/${token}/callback`, method: 'POST'
|
|
2526
1451
|
},
|
|
2527
1452
|
options);
|
|
2528
1453
|
}
|
|
2529
1454
|
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
*/
|
|
2533
|
-
const workspaceIntegrationsControllerGetWorkspaceIntegration = (
|
|
2534
|
-
slug: string,
|
|
2535
|
-
integrationId: string,
|
|
1455
|
+
const v10EnterpriseControllerCreateAnnouncement = (
|
|
1456
|
+
id: string,
|
|
2536
1457
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2537
1458
|
return customInstance<void>(
|
|
2538
|
-
{url: `/api/
|
|
1459
|
+
{url: `/api/bot/v10/enterprise/departments/${id}/announcements`, method: 'POST'
|
|
2539
1460
|
},
|
|
2540
1461
|
options);
|
|
2541
1462
|
}
|
|
2542
1463
|
|
|
2543
1464
|
/**
|
|
2544
|
-
*
|
|
1465
|
+
*
|
|
1466
|
+
Generates a bearer token for Machine-to-Machine (M2M) communication.
|
|
1467
|
+
|
|
1468
|
+
**Supported Scopes:**
|
|
1469
|
+
- `*`: Full access
|
|
1470
|
+
- `provisioning:workspaces`: Manage organizations and workspaces
|
|
1471
|
+
- `messages:read`: Read messages
|
|
1472
|
+
- `messages:send`: Send messages
|
|
1473
|
+
- `channels:read`: Read channel listings
|
|
1474
|
+
- `channels:write`: Create or update channels
|
|
1475
|
+
- `webhooks:read`: Query webhook registries
|
|
1476
|
+
- `webhooks:write`: Provision or configure webhooks
|
|
1477
|
+
|
|
1478
|
+
* @summary Exchange client credentials for a V3 access token
|
|
2545
1479
|
*/
|
|
2546
|
-
const
|
|
2547
|
-
|
|
2548
|
-
integrationId: string,
|
|
1480
|
+
const v3OAuthControllerGetToken = (
|
|
1481
|
+
v3TokenRequestDto: BodyType<V3TokenRequestDto>,
|
|
2549
1482
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2550
|
-
return customInstance<
|
|
2551
|
-
{url: `/api/
|
|
1483
|
+
return customInstance<V3OAuthControllerGetToken200>(
|
|
1484
|
+
{url: `/api/v3/oauth/token`, method: 'POST',
|
|
1485
|
+
headers: {'Content-Type': 'application/json', },
|
|
1486
|
+
data: v3TokenRequestDto
|
|
2552
1487
|
},
|
|
2553
1488
|
options);
|
|
2554
1489
|
}
|
|
2555
1490
|
|
|
2556
1491
|
/**
|
|
2557
|
-
*
|
|
1492
|
+
* Retrieve all workspaces associated with the authenticated organization or workspace context.
|
|
1493
|
+
* @summary List organization workspaces (Enterprise M2M)
|
|
2558
1494
|
*/
|
|
2559
|
-
const
|
|
2560
|
-
|
|
2561
|
-
integrationId: string,
|
|
1495
|
+
const v3WorkspacesControllerGetWorkspaces = (
|
|
1496
|
+
|
|
2562
1497
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2563
|
-
return customInstance<
|
|
2564
|
-
{url: `/api/workspaces
|
|
1498
|
+
return customInstance<V3WorkspacesControllerGetWorkspaces200>(
|
|
1499
|
+
{url: `/api/v3/workspaces`, method: 'GET'
|
|
2565
1500
|
},
|
|
2566
1501
|
options);
|
|
2567
1502
|
}
|
|
2568
1503
|
|
|
2569
1504
|
/**
|
|
2570
|
-
*
|
|
1505
|
+
*
|
|
1506
|
+
Provisions a new workspace within your organization.
|
|
1507
|
+
When provisioned via M2M:
|
|
1508
|
+
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
1509
|
+
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
1510
|
+
3. The specified owner and initial members are added.
|
|
1511
|
+
|
|
1512
|
+
* @summary Provision a new workspace (Enterprise M2M)
|
|
2571
1513
|
*/
|
|
2572
|
-
const
|
|
2573
|
-
|
|
2574
|
-
integrationId: string,
|
|
1514
|
+
const v3WorkspacesControllerProvisionWorkspace = (
|
|
1515
|
+
v3ProvisionWorkspaceDto: BodyType<V3ProvisionWorkspaceDto>,
|
|
2575
1516
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2576
|
-
return customInstance<
|
|
2577
|
-
{url: `/api/workspaces
|
|
1517
|
+
return customInstance<V3WorkspacesControllerProvisionWorkspace201>(
|
|
1518
|
+
{url: `/api/v3/workspaces`, method: 'POST',
|
|
1519
|
+
headers: {'Content-Type': 'application/json', },
|
|
1520
|
+
data: v3ProvisionWorkspaceDto
|
|
2578
1521
|
},
|
|
2579
1522
|
options);
|
|
2580
1523
|
}
|
|
2581
1524
|
|
|
2582
1525
|
/**
|
|
2583
|
-
*
|
|
1526
|
+
* Retrieve details of a specific workspace by its slug.
|
|
1527
|
+
* @summary Get workspace details (Enterprise M2M)
|
|
2584
1528
|
*/
|
|
2585
|
-
const
|
|
1529
|
+
const v3WorkspacesControllerGetWorkspaceBySlug = (
|
|
2586
1530
|
slug: string,
|
|
2587
1531
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2588
|
-
return customInstance<
|
|
2589
|
-
{url: `/api/workspaces/${slug}
|
|
1532
|
+
return customInstance<V3WorkspacesControllerGetWorkspaceBySlug200>(
|
|
1533
|
+
{url: `/api/v3/workspaces/${slug}`, method: 'GET'
|
|
2590
1534
|
},
|
|
2591
1535
|
options);
|
|
2592
1536
|
}
|
|
2593
1537
|
|
|
2594
1538
|
/**
|
|
2595
|
-
*
|
|
1539
|
+
* Update the configuration and metadata of a specific workspace.
|
|
1540
|
+
* @summary Update a workspace (Enterprise M2M)
|
|
2596
1541
|
*/
|
|
2597
|
-
const
|
|
1542
|
+
const v3WorkspacesControllerUpdateWorkspace = (
|
|
2598
1543
|
slug: string,
|
|
2599
|
-
|
|
1544
|
+
v3UpdateWorkspaceDto: BodyType<V3UpdateWorkspaceDto>,
|
|
2600
1545
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2601
|
-
return customInstance<
|
|
2602
|
-
{url: `/api/workspaces/${slug}
|
|
1546
|
+
return customInstance<V3WorkspacesControllerUpdateWorkspace200>(
|
|
1547
|
+
{url: `/api/v3/workspaces/${slug}`, method: 'PATCH',
|
|
2603
1548
|
headers: {'Content-Type': 'application/json', },
|
|
2604
|
-
data:
|
|
1549
|
+
data: v3UpdateWorkspaceDto
|
|
1550
|
+
},
|
|
1551
|
+
options);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* Permanently deletes a specific workspace.
|
|
1556
|
+
* @summary Delete a workspace (Enterprise M2M)
|
|
1557
|
+
*/
|
|
1558
|
+
const v3WorkspacesControllerDeleteWorkspace = (
|
|
1559
|
+
slug: string,
|
|
1560
|
+
options?: SecondParameter<typeof customInstance>,) => {
|
|
1561
|
+
return customInstance<V3WorkspacesControllerDeleteWorkspace200>(
|
|
1562
|
+
{url: `/api/v3/workspaces/${slug}`, method: 'DELETE'
|
|
2605
1563
|
},
|
|
2606
1564
|
options);
|
|
2607
1565
|
}
|
|
2608
1566
|
|
|
2609
1567
|
/**
|
|
2610
|
-
*
|
|
1568
|
+
* Retrieve all members of a specific workspace. Requires members:read scope.
|
|
1569
|
+
* @summary List all workspace members (Enterprise M2M)
|
|
2611
1570
|
*/
|
|
2612
|
-
const
|
|
2613
|
-
|
|
1571
|
+
const v3WorkspacesControllerGetWorkspaceMembers = (
|
|
1572
|
+
slug: string,
|
|
2614
1573
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2615
1574
|
return customInstance<void>(
|
|
2616
|
-
{url: `/api/
|
|
2617
|
-
params
|
|
1575
|
+
{url: `/api/v3/workspaces/${slug}/members`, method: 'GET'
|
|
2618
1576
|
},
|
|
2619
1577
|
options);
|
|
2620
1578
|
}
|
|
2621
1579
|
|
|
2622
1580
|
/**
|
|
2623
|
-
*
|
|
1581
|
+
* Add a new member to a specific workspace. Requires members:write scope.
|
|
1582
|
+
* @summary Add a member to the workspace (Enterprise M2M)
|
|
2624
1583
|
*/
|
|
2625
|
-
const
|
|
2626
|
-
|
|
1584
|
+
const v3WorkspacesControllerAddWorkspaceMember = (
|
|
1585
|
+
slug: string,
|
|
1586
|
+
v3AddMemberDto: BodyType<V3AddMemberDto>,
|
|
2627
1587
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2628
1588
|
return customInstance<void>(
|
|
2629
|
-
{url: `/api/
|
|
1589
|
+
{url: `/api/v3/workspaces/${slug}/members`, method: 'POST',
|
|
1590
|
+
headers: {'Content-Type': 'application/json', },
|
|
1591
|
+
data: v3AddMemberDto
|
|
2630
1592
|
},
|
|
2631
1593
|
options);
|
|
2632
1594
|
}
|
|
2633
1595
|
|
|
2634
1596
|
/**
|
|
2635
|
-
*
|
|
1597
|
+
* Retrieve details of a specific workspace member by userId. Requires members:read scope.
|
|
1598
|
+
* @summary Get details of a specific workspace member (Enterprise M2M)
|
|
2636
1599
|
*/
|
|
2637
|
-
const
|
|
2638
|
-
|
|
1600
|
+
const v3WorkspacesControllerGetWorkspaceMember = (
|
|
1601
|
+
slug: string,
|
|
1602
|
+
userId: string,
|
|
2639
1603
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2640
1604
|
return customInstance<void>(
|
|
2641
|
-
{url: `/api/
|
|
2642
|
-
params
|
|
1605
|
+
{url: `/api/v3/workspaces/${slug}/members/${userId}`, method: 'GET'
|
|
2643
1606
|
},
|
|
2644
1607
|
options);
|
|
2645
1608
|
}
|
|
2646
1609
|
|
|
2647
1610
|
/**
|
|
2648
|
-
*
|
|
1611
|
+
* Update the role of a specific workspace member. Requires members:write scope.
|
|
1612
|
+
* @summary Update a workspace member role (Enterprise M2M)
|
|
2649
1613
|
*/
|
|
2650
|
-
const
|
|
2651
|
-
|
|
1614
|
+
const v3WorkspacesControllerUpdateWorkspaceMember = (
|
|
1615
|
+
slug: string,
|
|
1616
|
+
userId: string,
|
|
1617
|
+
v3UpdateMemberRoleDto: BodyType<V3UpdateMemberRoleDto>,
|
|
2652
1618
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2653
1619
|
return customInstance<void>(
|
|
2654
|
-
{url: `/api/
|
|
1620
|
+
{url: `/api/v3/workspaces/${slug}/members/${userId}`, method: 'PATCH',
|
|
2655
1621
|
headers: {'Content-Type': 'application/json', },
|
|
2656
|
-
data:
|
|
1622
|
+
data: v3UpdateMemberRoleDto
|
|
2657
1623
|
},
|
|
2658
1624
|
options);
|
|
2659
1625
|
}
|
|
2660
1626
|
|
|
2661
1627
|
/**
|
|
2662
|
-
*
|
|
1628
|
+
* Remove a workspace member by userId. Requires members:write scope.
|
|
1629
|
+
* @summary Remove a member from the workspace (Enterprise M2M)
|
|
2663
1630
|
*/
|
|
2664
|
-
const
|
|
2665
|
-
|
|
1631
|
+
const v3WorkspacesControllerDeleteWorkspaceMember = (
|
|
1632
|
+
slug: string,
|
|
1633
|
+
userId: string,
|
|
2666
1634
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2667
1635
|
return customInstance<void>(
|
|
2668
|
-
{url: `/api/
|
|
2669
|
-
params
|
|
1636
|
+
{url: `/api/v3/workspaces/${slug}/members/${userId}`, method: 'DELETE'
|
|
2670
1637
|
},
|
|
2671
1638
|
options);
|
|
2672
1639
|
}
|
|
2673
1640
|
|
|
2674
1641
|
/**
|
|
2675
|
-
*
|
|
1642
|
+
* Requires webhooks:read scope. Retrieves all webhooks configured for this workspace.
|
|
1643
|
+
* @summary List all webhooks in the workspace
|
|
2676
1644
|
*/
|
|
2677
|
-
const
|
|
2678
|
-
|
|
1645
|
+
const v3WebhooksControllerGetWebhooks = (
|
|
1646
|
+
slug: string,
|
|
2679
1647
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2680
1648
|
return customInstance<void>(
|
|
2681
|
-
{url: `/api/
|
|
2682
|
-
headers: {'Content-Type': 'application/json', },
|
|
2683
|
-
data: channelSettingsDto
|
|
1649
|
+
{url: `/api/v3/workspaces/${slug}/webhooks`, method: 'GET'
|
|
2684
1650
|
},
|
|
2685
1651
|
options);
|
|
2686
1652
|
}
|
|
2687
1653
|
|
|
2688
1654
|
/**
|
|
2689
|
-
*
|
|
1655
|
+
* Requires webhooks:write scope.
|
|
1656
|
+
* @summary Create a new webhook
|
|
2690
1657
|
*/
|
|
2691
|
-
const
|
|
2692
|
-
|
|
2693
|
-
|
|
1658
|
+
const v3WebhooksControllerCreateWebhook = (
|
|
1659
|
+
slug: string,
|
|
1660
|
+
v3CreateWebhookDto: BodyType<V3CreateWebhookDto>,
|
|
2694
1661
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2695
1662
|
return customInstance<void>(
|
|
2696
|
-
{url: `/api/
|
|
1663
|
+
{url: `/api/v3/workspaces/${slug}/webhooks`, method: 'POST',
|
|
2697
1664
|
headers: {'Content-Type': 'application/json', },
|
|
2698
|
-
data:
|
|
1665
|
+
data: v3CreateWebhookDto
|
|
2699
1666
|
},
|
|
2700
1667
|
options);
|
|
2701
1668
|
}
|
|
2702
1669
|
|
|
2703
1670
|
/**
|
|
2704
|
-
*
|
|
1671
|
+
* Requires webhooks:read scope.
|
|
1672
|
+
* @summary Get details of a specific webhook
|
|
2705
1673
|
*/
|
|
2706
|
-
const
|
|
2707
|
-
|
|
1674
|
+
const v3WebhooksControllerGetWebhook = (
|
|
1675
|
+
slug: string,
|
|
1676
|
+
webhookId: string,
|
|
2708
1677
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2709
1678
|
return customInstance<void>(
|
|
2710
|
-
{url: `/api/
|
|
1679
|
+
{url: `/api/v3/workspaces/${slug}/webhooks/${webhookId}`, method: 'GET'
|
|
2711
1680
|
},
|
|
2712
1681
|
options);
|
|
2713
1682
|
}
|
|
2714
1683
|
|
|
2715
|
-
|
|
2716
|
-
|
|
1684
|
+
/**
|
|
1685
|
+
* Requires webhooks:write scope.
|
|
1686
|
+
* @summary Update a webhook
|
|
1687
|
+
*/
|
|
1688
|
+
const v3WebhooksControllerUpdateWebhook = (
|
|
1689
|
+
slug: string,
|
|
1690
|
+
webhookId: string,
|
|
1691
|
+
v3UpdateWebhookDto: BodyType<V3UpdateWebhookDto>,
|
|
2717
1692
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2718
1693
|
return customInstance<void>(
|
|
2719
|
-
{url: `/api/
|
|
1694
|
+
{url: `/api/v3/workspaces/${slug}/webhooks/${webhookId}`, method: 'PATCH',
|
|
1695
|
+
headers: {'Content-Type': 'application/json', },
|
|
1696
|
+
data: v3UpdateWebhookDto
|
|
2720
1697
|
},
|
|
2721
1698
|
options);
|
|
2722
1699
|
}
|
|
2723
1700
|
|
|
2724
1701
|
/**
|
|
2725
|
-
*
|
|
1702
|
+
* Requires webhooks:write scope.
|
|
1703
|
+
* @summary Delete a webhook
|
|
2726
1704
|
*/
|
|
2727
|
-
const
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
formData.append('file', storageControllerUploadFileBody.file)
|
|
2732
|
-
}
|
|
2733
|
-
|
|
1705
|
+
const v3WebhooksControllerDeleteWebhook = (
|
|
1706
|
+
slug: string,
|
|
1707
|
+
webhookId: string,
|
|
1708
|
+
options?: SecondParameter<typeof customInstance>,) => {
|
|
2734
1709
|
return customInstance<void>(
|
|
2735
|
-
{url: `/api/
|
|
2736
|
-
headers: {'Content-Type': 'multipart/form-data', },
|
|
2737
|
-
data: formData
|
|
1710
|
+
{url: `/api/v3/workspaces/${slug}/webhooks/${webhookId}`, method: 'DELETE'
|
|
2738
1711
|
},
|
|
2739
1712
|
options);
|
|
2740
1713
|
}
|
|
2741
1714
|
|
|
2742
1715
|
/**
|
|
2743
|
-
*
|
|
1716
|
+
* Requires webhooks:read scope. Retrieves all incoming webhooks configured for this channel.
|
|
1717
|
+
* @summary List incoming webhooks for a channel
|
|
2744
1718
|
*/
|
|
2745
|
-
const
|
|
2746
|
-
|
|
1719
|
+
const v3ChannelIncomingWebhooksControllerGetChannelWebhooks = (
|
|
1720
|
+
slug: string,
|
|
1721
|
+
channelId: string,
|
|
2747
1722
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2748
1723
|
return customInstance<void>(
|
|
2749
|
-
{url: `/
|
|
1724
|
+
{url: `/api/v3/workspaces/${slug}/channels/${channelId}/incoming-webhooks`, method: 'GET'
|
|
2750
1725
|
},
|
|
2751
1726
|
options);
|
|
2752
1727
|
}
|
|
2753
1728
|
|
|
2754
|
-
|
|
2755
|
-
|
|
1729
|
+
/**
|
|
1730
|
+
* Requires webhooks:write scope. Generates a new webhook token and secret.
|
|
1731
|
+
* @summary Create an incoming webhook for a channel
|
|
1732
|
+
*/
|
|
1733
|
+
const v3ChannelIncomingWebhooksControllerCreateChannelWebhook = (
|
|
1734
|
+
slug: string,
|
|
1735
|
+
channelId: string,
|
|
1736
|
+
createChannelIncomingWebhookDto: BodyType<CreateChannelIncomingWebhookDto>,
|
|
2756
1737
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2757
1738
|
return customInstance<void>(
|
|
2758
|
-
{url: `/api/
|
|
1739
|
+
{url: `/api/v3/workspaces/${slug}/channels/${channelId}/incoming-webhooks`, method: 'POST',
|
|
1740
|
+
headers: {'Content-Type': 'application/json', },
|
|
1741
|
+
data: createChannelIncomingWebhookDto
|
|
2759
1742
|
},
|
|
2760
1743
|
options);
|
|
2761
1744
|
}
|
|
2762
1745
|
|
|
2763
|
-
|
|
2764
|
-
|
|
1746
|
+
/**
|
|
1747
|
+
* Requires webhooks:read scope.
|
|
1748
|
+
* @summary Get details of a channel incoming webhook
|
|
1749
|
+
*/
|
|
1750
|
+
const v3ChannelIncomingWebhooksControllerGetChannelWebhook = (
|
|
1751
|
+
slug: string,
|
|
1752
|
+
channelId: string,
|
|
1753
|
+
webhookId: string,
|
|
2765
1754
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2766
1755
|
return customInstance<void>(
|
|
2767
|
-
{url: `/api/
|
|
1756
|
+
{url: `/api/v3/workspaces/${slug}/channels/${channelId}/incoming-webhooks/${webhookId}`, method: 'GET'
|
|
2768
1757
|
},
|
|
2769
1758
|
options);
|
|
2770
1759
|
}
|
|
2771
1760
|
|
|
2772
|
-
|
|
2773
|
-
|
|
1761
|
+
/**
|
|
1762
|
+
* Requires webhooks:write scope.
|
|
1763
|
+
* @summary Update a channel incoming webhook
|
|
1764
|
+
*/
|
|
1765
|
+
const v3ChannelIncomingWebhooksControllerUpdateChannelWebhook = (
|
|
1766
|
+
slug: string,
|
|
1767
|
+
channelId: string,
|
|
1768
|
+
webhookId: string,
|
|
1769
|
+
updateChannelIncomingWebhookDto: BodyType<UpdateChannelIncomingWebhookDto>,
|
|
2774
1770
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2775
1771
|
return customInstance<void>(
|
|
2776
|
-
{url: `/api/
|
|
1772
|
+
{url: `/api/v3/workspaces/${slug}/channels/${channelId}/incoming-webhooks/${webhookId}`, method: 'PATCH',
|
|
1773
|
+
headers: {'Content-Type': 'application/json', },
|
|
1774
|
+
data: updateChannelIncomingWebhookDto
|
|
2777
1775
|
},
|
|
2778
1776
|
options);
|
|
2779
1777
|
}
|
|
2780
1778
|
|
|
2781
|
-
|
|
2782
|
-
|
|
1779
|
+
/**
|
|
1780
|
+
* Requires webhooks:write scope.
|
|
1781
|
+
* @summary Delete a channel incoming webhook
|
|
1782
|
+
*/
|
|
1783
|
+
const v3ChannelIncomingWebhooksControllerDeleteChannelWebhook = (
|
|
1784
|
+
slug: string,
|
|
1785
|
+
channelId: string,
|
|
1786
|
+
webhookId: string,
|
|
2783
1787
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2784
1788
|
return customInstance<void>(
|
|
2785
|
-
{url: `/api/
|
|
1789
|
+
{url: `/api/v3/workspaces/${slug}/channels/${channelId}/incoming-webhooks/${webhookId}`, method: 'DELETE'
|
|
2786
1790
|
},
|
|
2787
1791
|
options);
|
|
2788
1792
|
}
|
|
2789
1793
|
|
|
2790
1794
|
/**
|
|
2791
|
-
*
|
|
1795
|
+
* Trigger a webhook using its unique token directly in the URL path. No authentication header required.
|
|
1796
|
+
* @summary Execute a channel incoming webhook (Token in URL)
|
|
2792
1797
|
*/
|
|
2793
|
-
const
|
|
2794
|
-
|
|
1798
|
+
const v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken = (
|
|
1799
|
+
token: string,
|
|
1800
|
+
executeChannelIncomingWebhookDto: BodyType<ExecuteChannelIncomingWebhookDto>,
|
|
2795
1801
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2796
1802
|
return customInstance<void>(
|
|
2797
|
-
{url: `/api/
|
|
1803
|
+
{url: `/api/v3/webhooks/incoming/${token}`, method: 'POST',
|
|
1804
|
+
headers: {'Content-Type': 'application/json', },
|
|
1805
|
+
data: executeChannelIncomingWebhookDto
|
|
2798
1806
|
},
|
|
2799
1807
|
options);
|
|
2800
1808
|
}
|
|
2801
1809
|
|
|
2802
1810
|
/**
|
|
2803
|
-
*
|
|
1811
|
+
* Trigger a webhook targeting a specific channel ID. The webhook token must be supplied in the `x-webhook-token` header, the `token` query param, or signature query param.
|
|
1812
|
+
* @summary Execute a channel incoming webhook (Channel in URL)
|
|
2804
1813
|
*/
|
|
2805
|
-
const
|
|
2806
|
-
|
|
1814
|
+
const v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId = (
|
|
1815
|
+
channelId: string,
|
|
1816
|
+
executeChannelIncomingWebhookDto: BodyType<ExecuteChannelIncomingWebhookDto>,
|
|
1817
|
+
params?: V3ChannelIncomingWebhooksControllerExecuteWebhookByChannelIdParams,
|
|
2807
1818
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2808
1819
|
return customInstance<void>(
|
|
2809
|
-
{url: `/api/
|
|
1820
|
+
{url: `/api/v3/channels/${channelId}/webhooks/incoming`, method: 'POST',
|
|
1821
|
+
headers: {'Content-Type': 'application/json', },
|
|
1822
|
+
data: executeChannelIncomingWebhookDto,
|
|
1823
|
+
params
|
|
2810
1824
|
},
|
|
2811
1825
|
options);
|
|
2812
1826
|
}
|
|
2813
1827
|
|
|
2814
1828
|
/**
|
|
2815
|
-
* @summary
|
|
1829
|
+
* @summary List workspaces for an organization
|
|
2816
1830
|
*/
|
|
2817
|
-
const
|
|
2818
|
-
|
|
2819
|
-
params?: V10ChannelsControllerGetMessagesParams,
|
|
1831
|
+
const v3OrganizationsControllerGetOrganizationWorkspaces = (
|
|
1832
|
+
orgSlug: string,
|
|
2820
1833
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2821
1834
|
return customInstance<void>(
|
|
2822
|
-
{url: `/api/
|
|
2823
|
-
params
|
|
1835
|
+
{url: `/api/v3/organizations/${orgSlug}/workspaces`, method: 'GET'
|
|
2824
1836
|
},
|
|
2825
1837
|
options);
|
|
2826
1838
|
}
|
|
2827
1839
|
|
|
2828
1840
|
/**
|
|
2829
|
-
* @summary
|
|
1841
|
+
* @summary Get organization details
|
|
2830
1842
|
*/
|
|
2831
|
-
const
|
|
2832
|
-
|
|
2833
|
-
messageId: string,
|
|
1843
|
+
const v3OrganizationsControllerGetOrganization = (
|
|
1844
|
+
orgSlug: string,
|
|
2834
1845
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2835
1846
|
return customInstance<void>(
|
|
2836
|
-
{url: `/api/
|
|
1847
|
+
{url: `/api/v3/organizations/${orgSlug}`, method: 'GET'
|
|
2837
1848
|
},
|
|
2838
1849
|
options);
|
|
2839
1850
|
}
|
|
2840
1851
|
|
|
2841
1852
|
/**
|
|
2842
|
-
* @summary
|
|
1853
|
+
* @summary Update organization details
|
|
2843
1854
|
*/
|
|
2844
|
-
const
|
|
2845
|
-
|
|
2846
|
-
|
|
1855
|
+
const v3OrganizationsControllerUpdateOrganization = (
|
|
1856
|
+
orgSlug: string,
|
|
1857
|
+
v3UpdateOrganizationDto: BodyType<V3UpdateOrganizationDto>,
|
|
2847
1858
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2848
1859
|
return customInstance<void>(
|
|
2849
|
-
{url: `/api/
|
|
1860
|
+
{url: `/api/v3/organizations/${orgSlug}`, method: 'PATCH',
|
|
1861
|
+
headers: {'Content-Type': 'application/json', },
|
|
1862
|
+
data: v3UpdateOrganizationDto
|
|
2850
1863
|
},
|
|
2851
1864
|
options);
|
|
2852
1865
|
}
|
|
2853
1866
|
|
|
2854
|
-
|
|
2855
|
-
|
|
1867
|
+
/**
|
|
1868
|
+
* @summary List organization M2M applications
|
|
1869
|
+
*/
|
|
1870
|
+
const v3OrganizationsControllerGetM2mApplications = (
|
|
1871
|
+
orgSlug: string,
|
|
2856
1872
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2857
1873
|
return customInstance<void>(
|
|
2858
|
-
{url: `/api/
|
|
1874
|
+
{url: `/api/v3/organizations/${orgSlug}/m2m`, method: 'GET'
|
|
2859
1875
|
},
|
|
2860
1876
|
options);
|
|
2861
1877
|
}
|
|
2862
1878
|
|
|
2863
|
-
|
|
2864
|
-
|
|
1879
|
+
/**
|
|
1880
|
+
* @summary Create organization M2M application credentials
|
|
1881
|
+
*/
|
|
1882
|
+
const v3OrganizationsControllerCreateM2mApplication = (
|
|
1883
|
+
orgSlug: string,
|
|
1884
|
+
v3CreateM2mApplicationDto: BodyType<V3CreateM2mApplicationDto>,
|
|
2865
1885
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2866
1886
|
return customInstance<void>(
|
|
2867
|
-
{url: `/api/
|
|
1887
|
+
{url: `/api/v3/organizations/${orgSlug}/m2m`, method: 'POST',
|
|
1888
|
+
headers: {'Content-Type': 'application/json', },
|
|
1889
|
+
data: v3CreateM2mApplicationDto
|
|
2868
1890
|
},
|
|
2869
1891
|
options);
|
|
2870
1892
|
}
|
|
2871
1893
|
|
|
2872
|
-
|
|
2873
|
-
|
|
1894
|
+
/**
|
|
1895
|
+
* @summary Update organization M2M application credentials and scopes
|
|
1896
|
+
*/
|
|
1897
|
+
const v3OrganizationsControllerUpdateM2mApplication = (
|
|
1898
|
+
orgSlug: string,
|
|
1899
|
+
id: string,
|
|
1900
|
+
v3UpdateM2mApplicationDto: BodyType<V3UpdateM2mApplicationDto>,
|
|
2874
1901
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2875
1902
|
return customInstance<void>(
|
|
2876
|
-
{url: `/api/
|
|
1903
|
+
{url: `/api/v3/organizations/${orgSlug}/m2m/${id}`, method: 'PATCH',
|
|
1904
|
+
headers: {'Content-Type': 'application/json', },
|
|
1905
|
+
data: v3UpdateM2mApplicationDto
|
|
2877
1906
|
},
|
|
2878
1907
|
options);
|
|
2879
1908
|
}
|
|
2880
1909
|
|
|
2881
|
-
|
|
2882
|
-
|
|
1910
|
+
/**
|
|
1911
|
+
* @summary Delete organization M2M application credentials
|
|
1912
|
+
*/
|
|
1913
|
+
const v3OrganizationsControllerDeleteM2mApplication = (
|
|
1914
|
+
orgSlug: string,
|
|
1915
|
+
id: string,
|
|
2883
1916
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2884
1917
|
return customInstance<void>(
|
|
2885
|
-
{url: `/api/
|
|
1918
|
+
{url: `/api/v3/organizations/${orgSlug}/m2m/${id}`, method: 'DELETE'
|
|
2886
1919
|
},
|
|
2887
1920
|
options);
|
|
2888
1921
|
}
|
|
2889
1922
|
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
1923
|
+
/**
|
|
1924
|
+
* @summary Get notifications for the current user
|
|
1925
|
+
*/
|
|
1926
|
+
const notificationsControllerGetNotifications = (
|
|
1927
|
+
params?: NotificationsControllerGetNotificationsParams,
|
|
2894
1928
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2895
1929
|
return customInstance<void>(
|
|
2896
|
-
{url: `/api/
|
|
1930
|
+
{url: `/api/notifications`, method: 'GET',
|
|
1931
|
+
params
|
|
2897
1932
|
},
|
|
2898
1933
|
options);
|
|
2899
1934
|
}
|
|
2900
1935
|
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
1936
|
+
/**
|
|
1937
|
+
* @summary Get a single notification by ID
|
|
1938
|
+
*/
|
|
1939
|
+
const notificationsControllerGetNotificationById = (
|
|
1940
|
+
notificationId: string,
|
|
2905
1941
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2906
1942
|
return customInstance<void>(
|
|
2907
|
-
{url: `/api/
|
|
1943
|
+
{url: `/api/notifications/${notificationId}`, method: 'GET'
|
|
2908
1944
|
},
|
|
2909
1945
|
options);
|
|
2910
1946
|
}
|
|
2911
1947
|
|
|
2912
|
-
|
|
2913
|
-
|
|
1948
|
+
/**
|
|
1949
|
+
* @summary Update a notification (e.g. mark as read)
|
|
1950
|
+
*/
|
|
1951
|
+
const notificationsControllerUpdateNotification = (
|
|
1952
|
+
notificationId: string,
|
|
1953
|
+
updateNotificationDto: BodyType<UpdateNotificationDto>,
|
|
2914
1954
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2915
1955
|
return customInstance<void>(
|
|
2916
|
-
{url: `/api/
|
|
1956
|
+
{url: `/api/notifications/${notificationId}`, method: 'PATCH',
|
|
1957
|
+
headers: {'Content-Type': 'application/json', },
|
|
1958
|
+
data: updateNotificationDto
|
|
2917
1959
|
},
|
|
2918
1960
|
options);
|
|
2919
1961
|
}
|
|
2920
1962
|
|
|
2921
|
-
|
|
2922
|
-
|
|
1963
|
+
/**
|
|
1964
|
+
* @summary Delete a notification
|
|
1965
|
+
*/
|
|
1966
|
+
const notificationsControllerDeleteNotification = (
|
|
1967
|
+
notificationId: string,
|
|
2923
1968
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2924
1969
|
return customInstance<void>(
|
|
2925
|
-
{url: `/api/
|
|
1970
|
+
{url: `/api/notifications/${notificationId}`, method: 'DELETE'
|
|
2926
1971
|
},
|
|
2927
1972
|
options);
|
|
2928
1973
|
}
|
|
2929
1974
|
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
1975
|
+
/**
|
|
1976
|
+
* @summary Mark all notifications as read
|
|
1977
|
+
*/
|
|
1978
|
+
const notificationsControllerMarkAllRead = (
|
|
1979
|
+
|
|
2933
1980
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2934
1981
|
return customInstance<void>(
|
|
2935
|
-
{url: `/api/
|
|
1982
|
+
{url: `/api/notifications/mark-all-read`, method: 'POST'
|
|
2936
1983
|
},
|
|
2937
1984
|
options);
|
|
2938
1985
|
}
|
|
2939
1986
|
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
1987
|
+
/**
|
|
1988
|
+
* @summary Get notification settings for a workspace
|
|
1989
|
+
*/
|
|
1990
|
+
const notificationsControllerGetWorkspaceSettings = (
|
|
1991
|
+
params: NotificationsControllerGetWorkspaceSettingsParams,
|
|
2943
1992
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2944
1993
|
return customInstance<void>(
|
|
2945
|
-
{url: `/api/
|
|
1994
|
+
{url: `/api/notifications/settings/workspace`, method: 'GET',
|
|
1995
|
+
params
|
|
2946
1996
|
},
|
|
2947
1997
|
options);
|
|
2948
1998
|
}
|
|
2949
1999
|
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2000
|
+
/**
|
|
2001
|
+
* @summary Update notification settings for a workspace
|
|
2002
|
+
*/
|
|
2003
|
+
const notificationsControllerUpdateWorkspaceSettings = (
|
|
2004
|
+
workspaceSettingsDto: BodyType<WorkspaceSettingsDto>,
|
|
2953
2005
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2954
2006
|
return customInstance<void>(
|
|
2955
|
-
{url: `/api/
|
|
2007
|
+
{url: `/api/notifications/settings/workspace`, method: 'PATCH',
|
|
2008
|
+
headers: {'Content-Type': 'application/json', },
|
|
2009
|
+
data: workspaceSettingsDto
|
|
2956
2010
|
},
|
|
2957
2011
|
options);
|
|
2958
2012
|
}
|
|
2959
2013
|
|
|
2960
|
-
|
|
2961
|
-
|
|
2014
|
+
/**
|
|
2015
|
+
* @summary Get notification settings for a channel
|
|
2016
|
+
*/
|
|
2017
|
+
const notificationsControllerGetChannelSettings = (
|
|
2018
|
+
params: NotificationsControllerGetChannelSettingsParams,
|
|
2962
2019
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2963
2020
|
return customInstance<void>(
|
|
2964
|
-
{url: `/api/
|
|
2021
|
+
{url: `/api/notifications/settings/channel`, method: 'GET',
|
|
2022
|
+
params
|
|
2965
2023
|
},
|
|
2966
2024
|
options);
|
|
2967
2025
|
}
|
|
2968
2026
|
|
|
2969
2027
|
/**
|
|
2970
|
-
*
|
|
2971
|
-
Generates a bearer token for Machine-to-Machine (M2M) communication.
|
|
2972
|
-
|
|
2973
|
-
**Supported Scopes:**
|
|
2974
|
-
- `*`: Full access
|
|
2975
|
-
- `provisioning:workspaces`: Manage organizations and workspaces
|
|
2976
|
-
- `messages:read`: Read messages
|
|
2977
|
-
- `messages:send`: Send messages
|
|
2978
|
-
- `channels:read`: Read channel listings
|
|
2979
|
-
- `channels:write`: Create or update channels
|
|
2980
|
-
- `webhooks:read`: Query webhook registries
|
|
2981
|
-
- `webhooks:write`: Provision or configure webhooks
|
|
2982
|
-
|
|
2983
|
-
* @summary Exchange client credentials for a V3 access token
|
|
2028
|
+
* @summary Update notification settings for a channel
|
|
2984
2029
|
*/
|
|
2985
|
-
const
|
|
2986
|
-
|
|
2030
|
+
const notificationsControllerUpdateChannelSettings = (
|
|
2031
|
+
channelSettingsDto: BodyType<ChannelSettingsDto>,
|
|
2987
2032
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
2988
|
-
return customInstance<
|
|
2989
|
-
{url: `/api/
|
|
2033
|
+
return customInstance<void>(
|
|
2034
|
+
{url: `/api/notifications/settings/channel`, method: 'PATCH',
|
|
2990
2035
|
headers: {'Content-Type': 'application/json', },
|
|
2991
|
-
data:
|
|
2036
|
+
data: channelSettingsDto
|
|
2992
2037
|
},
|
|
2993
2038
|
options);
|
|
2994
2039
|
}
|
|
2995
2040
|
|
|
2996
2041
|
/**
|
|
2997
|
-
*
|
|
2998
|
-
* @summary List organization workspaces (Enterprise M2M)
|
|
2042
|
+
* @summary Get invitations for the current user
|
|
2999
2043
|
*/
|
|
3000
|
-
const
|
|
3001
|
-
|
|
2044
|
+
const invitationsControllerGetInvitations = (
|
|
2045
|
+
params?: InvitationsControllerGetInvitationsParams,
|
|
3002
2046
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3003
|
-
return customInstance<
|
|
3004
|
-
{url: `/api/
|
|
2047
|
+
return customInstance<void>(
|
|
2048
|
+
{url: `/api/invitations`, method: 'GET',
|
|
2049
|
+
params
|
|
3005
2050
|
},
|
|
3006
2051
|
options);
|
|
3007
2052
|
}
|
|
3008
2053
|
|
|
3009
2054
|
/**
|
|
3010
|
-
*
|
|
3011
|
-
Provisions a new workspace within your organization.
|
|
3012
|
-
When provisioned via M2M:
|
|
3013
|
-
1. A **System Bot** (Default Bot) is automatically created with admin privileges for the workspace.
|
|
3014
|
-
2. Your M2M application is installed as an **Administrator** in the new workspace.
|
|
3015
|
-
3. The specified owner and initial members are added.
|
|
3016
|
-
|
|
3017
|
-
* @summary Provision a new workspace (Enterprise M2M)
|
|
2055
|
+
* @summary Create a new invitation
|
|
3018
2056
|
*/
|
|
3019
|
-
const
|
|
3020
|
-
|
|
2057
|
+
const invitationsControllerCreateInvitation = (
|
|
2058
|
+
createInvitationDto: BodyType<CreateInvitationDto>,
|
|
3021
2059
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3022
|
-
return customInstance<
|
|
3023
|
-
{url: `/api/
|
|
2060
|
+
return customInstance<void>(
|
|
2061
|
+
{url: `/api/invitations`, method: 'POST',
|
|
3024
2062
|
headers: {'Content-Type': 'application/json', },
|
|
3025
|
-
data:
|
|
2063
|
+
data: createInvitationDto
|
|
3026
2064
|
},
|
|
3027
2065
|
options);
|
|
3028
2066
|
}
|
|
3029
2067
|
|
|
3030
2068
|
/**
|
|
3031
|
-
*
|
|
3032
|
-
* @summary Get workspace details (Enterprise M2M)
|
|
2069
|
+
* @summary Get invitation details by token
|
|
3033
2070
|
*/
|
|
3034
|
-
const
|
|
3035
|
-
|
|
2071
|
+
const invitationsControllerGetInvitationByToken = (
|
|
2072
|
+
token: string,
|
|
3036
2073
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3037
|
-
return customInstance<
|
|
3038
|
-
{url: `/api/
|
|
2074
|
+
return customInstance<void>(
|
|
2075
|
+
{url: `/api/invitations/${token}`, method: 'GET'
|
|
3039
2076
|
},
|
|
3040
2077
|
options);
|
|
3041
2078
|
}
|
|
3042
2079
|
|
|
3043
2080
|
/**
|
|
3044
|
-
*
|
|
3045
|
-
* @summary Update a workspace (Enterprise M2M)
|
|
2081
|
+
* @summary Accept an invitation
|
|
3046
2082
|
*/
|
|
3047
|
-
const
|
|
3048
|
-
|
|
3049
|
-
v3UpdateWorkspaceDto: BodyType<V3UpdateWorkspaceDto>,
|
|
2083
|
+
const invitationsControllerAcceptInvitation = (
|
|
2084
|
+
token: string,
|
|
3050
2085
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3051
|
-
return customInstance<
|
|
3052
|
-
{url: `/api/
|
|
3053
|
-
headers: {'Content-Type': 'application/json', },
|
|
3054
|
-
data: v3UpdateWorkspaceDto
|
|
2086
|
+
return customInstance<void>(
|
|
2087
|
+
{url: `/api/invitations/${token}/accept`, method: 'POST'
|
|
3055
2088
|
},
|
|
3056
2089
|
options);
|
|
3057
2090
|
}
|
|
3058
2091
|
|
|
3059
2092
|
/**
|
|
3060
|
-
*
|
|
3061
|
-
* @summary Delete a workspace (Enterprise M2M)
|
|
2093
|
+
* @summary Handle Plane webhook
|
|
3062
2094
|
*/
|
|
3063
|
-
const
|
|
3064
|
-
|
|
2095
|
+
const integrationsControllerHandlePlaneWebhook = (
|
|
2096
|
+
|
|
3065
2097
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3066
|
-
return customInstance<
|
|
3067
|
-
{url: `/api/
|
|
2098
|
+
return customInstance<void>(
|
|
2099
|
+
{url: `/api/integrations/plane/webhook`, method: 'POST'
|
|
3068
2100
|
},
|
|
3069
2101
|
options);
|
|
3070
2102
|
}
|
|
3071
2103
|
|
|
3072
2104
|
/**
|
|
3073
|
-
*
|
|
3074
|
-
* @summary List all workspace members (Enterprise M2M)
|
|
2105
|
+
* @summary Handle Huly webhook
|
|
3075
2106
|
*/
|
|
3076
|
-
const
|
|
3077
|
-
|
|
2107
|
+
const integrationsControllerHandleHulyWebhook = (
|
|
2108
|
+
id: string,
|
|
3078
2109
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3079
2110
|
return customInstance<void>(
|
|
3080
|
-
{url: `/api/
|
|
2111
|
+
{url: `/api/integrations/huly/webhook/${id}`, method: 'POST'
|
|
3081
2112
|
},
|
|
3082
2113
|
options);
|
|
3083
2114
|
}
|
|
3084
2115
|
|
|
3085
2116
|
/**
|
|
3086
|
-
*
|
|
3087
|
-
* @summary Add a member to the workspace (Enterprise M2M)
|
|
2117
|
+
* @summary Get integration statistics
|
|
3088
2118
|
*/
|
|
3089
|
-
const
|
|
3090
|
-
|
|
3091
|
-
v3AddMemberDto: BodyType<V3AddMemberDto>,
|
|
2119
|
+
const integrationsControllerGetStats = (
|
|
2120
|
+
|
|
3092
2121
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3093
2122
|
return customInstance<void>(
|
|
3094
|
-
{url: `/api/
|
|
3095
|
-
headers: {'Content-Type': 'application/json', },
|
|
3096
|
-
data: v3AddMemberDto
|
|
2123
|
+
{url: `/api/integrations/stats`, method: 'GET'
|
|
3097
2124
|
},
|
|
3098
2125
|
options);
|
|
3099
2126
|
}
|
|
3100
2127
|
|
|
3101
2128
|
/**
|
|
3102
|
-
*
|
|
3103
|
-
* @summary Get details of a specific workspace member (Enterprise M2M)
|
|
2129
|
+
* @summary Get all integration webhooks
|
|
3104
2130
|
*/
|
|
3105
|
-
const
|
|
3106
|
-
|
|
3107
|
-
userId: string,
|
|
2131
|
+
const integrationsControllerGetWebhooks = (
|
|
2132
|
+
|
|
3108
2133
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3109
2134
|
return customInstance<void>(
|
|
3110
|
-
{url: `/api/
|
|
2135
|
+
{url: `/api/integrations/webhooks`, method: 'GET'
|
|
3111
2136
|
},
|
|
3112
2137
|
options);
|
|
3113
2138
|
}
|
|
3114
2139
|
|
|
3115
2140
|
/**
|
|
3116
|
-
*
|
|
3117
|
-
* @summary Update a workspace member role (Enterprise M2M)
|
|
2141
|
+
* @summary Create an integration webhook
|
|
3118
2142
|
*/
|
|
3119
|
-
const
|
|
3120
|
-
|
|
3121
|
-
userId: string,
|
|
3122
|
-
v3UpdateMemberRoleDto: BodyType<V3UpdateMemberRoleDto>,
|
|
2143
|
+
const integrationsControllerCreateWebhook = (
|
|
2144
|
+
createIntegrationWebhookDto: BodyType<CreateIntegrationWebhookDto>,
|
|
3123
2145
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3124
2146
|
return customInstance<void>(
|
|
3125
|
-
{url: `/api/
|
|
2147
|
+
{url: `/api/integrations/webhooks`, method: 'POST',
|
|
3126
2148
|
headers: {'Content-Type': 'application/json', },
|
|
3127
|
-
data:
|
|
2149
|
+
data: createIntegrationWebhookDto
|
|
3128
2150
|
},
|
|
3129
2151
|
options);
|
|
3130
2152
|
}
|
|
3131
2153
|
|
|
3132
2154
|
/**
|
|
3133
|
-
*
|
|
3134
|
-
* @summary Remove a member from the workspace (Enterprise M2M)
|
|
2155
|
+
* @summary Update an integration webhook
|
|
3135
2156
|
*/
|
|
3136
|
-
const
|
|
3137
|
-
|
|
3138
|
-
userId: string,
|
|
2157
|
+
const integrationsControllerUpdateWebhook = (
|
|
2158
|
+
webhookId: string,
|
|
3139
2159
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3140
2160
|
return customInstance<void>(
|
|
3141
|
-
{url: `/api/
|
|
2161
|
+
{url: `/api/integrations/webhooks/${webhookId}`, method: 'PATCH'
|
|
3142
2162
|
},
|
|
3143
2163
|
options);
|
|
3144
2164
|
}
|
|
3145
2165
|
|
|
3146
2166
|
/**
|
|
3147
|
-
*
|
|
3148
|
-
* @summary List all webhooks in the workspace
|
|
2167
|
+
* @summary Delete an integration webhook
|
|
3149
2168
|
*/
|
|
3150
|
-
const
|
|
3151
|
-
|
|
2169
|
+
const integrationsControllerDeleteWebhook = (
|
|
2170
|
+
webhookId: string,
|
|
3152
2171
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3153
2172
|
return customInstance<void>(
|
|
3154
|
-
{url: `/api/
|
|
2173
|
+
{url: `/api/integrations/webhooks/${webhookId}`, method: 'DELETE'
|
|
3155
2174
|
},
|
|
3156
2175
|
options);
|
|
3157
2176
|
}
|
|
3158
2177
|
|
|
3159
2178
|
/**
|
|
3160
|
-
*
|
|
3161
|
-
* @summary Create a new webhook
|
|
2179
|
+
* @summary Get integration webhook logs
|
|
3162
2180
|
*/
|
|
3163
|
-
const
|
|
3164
|
-
|
|
3165
|
-
v3CreateWebhookDto: BodyType<V3CreateWebhookDto>,
|
|
2181
|
+
const integrationsControllerGetWebhookLogs = (
|
|
2182
|
+
webhookId: string,
|
|
3166
2183
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3167
2184
|
return customInstance<void>(
|
|
3168
|
-
{url: `/api/
|
|
3169
|
-
headers: {'Content-Type': 'application/json', },
|
|
3170
|
-
data: v3CreateWebhookDto
|
|
2185
|
+
{url: `/api/integrations/webhooks/${webhookId}/logs`, method: 'GET'
|
|
3171
2186
|
},
|
|
3172
2187
|
options);
|
|
3173
2188
|
}
|
|
3174
2189
|
|
|
3175
2190
|
/**
|
|
3176
|
-
*
|
|
3177
|
-
* @summary Get details of a specific webhook
|
|
2191
|
+
* @summary Get all integration API keys
|
|
3178
2192
|
*/
|
|
3179
|
-
const
|
|
3180
|
-
|
|
3181
|
-
webhookId: string,
|
|
2193
|
+
const integrationsControllerGetApiKeys = (
|
|
2194
|
+
|
|
3182
2195
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3183
2196
|
return customInstance<void>(
|
|
3184
|
-
{url: `/api/
|
|
2197
|
+
{url: `/api/integrations/api-keys`, method: 'GET'
|
|
3185
2198
|
},
|
|
3186
2199
|
options);
|
|
3187
2200
|
}
|
|
3188
2201
|
|
|
3189
2202
|
/**
|
|
3190
|
-
*
|
|
3191
|
-
* @summary Update a webhook
|
|
2203
|
+
* @summary Update an integration API key
|
|
3192
2204
|
*/
|
|
3193
|
-
const
|
|
3194
|
-
|
|
3195
|
-
webhookId: string,
|
|
3196
|
-
v3UpdateWebhookDto: BodyType<V3UpdateWebhookDto>,
|
|
2205
|
+
const integrationsControllerUpdateApiKey = (
|
|
2206
|
+
keyId: string,
|
|
3197
2207
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3198
2208
|
return customInstance<void>(
|
|
3199
|
-
{url: `/api/
|
|
3200
|
-
headers: {'Content-Type': 'application/json', },
|
|
3201
|
-
data: v3UpdateWebhookDto
|
|
2209
|
+
{url: `/api/integrations/api-keys/${keyId}`, method: 'PATCH'
|
|
3202
2210
|
},
|
|
3203
2211
|
options);
|
|
3204
2212
|
}
|
|
3205
2213
|
|
|
3206
2214
|
/**
|
|
3207
|
-
*
|
|
3208
|
-
* @summary Delete a webhook
|
|
2215
|
+
* @summary Delete an integration API key
|
|
3209
2216
|
*/
|
|
3210
|
-
const
|
|
3211
|
-
|
|
3212
|
-
webhookId: string,
|
|
2217
|
+
const integrationsControllerDeleteApiKey = (
|
|
2218
|
+
keyId: string,
|
|
3213
2219
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3214
2220
|
return customInstance<void>(
|
|
3215
|
-
{url: `/api/
|
|
2221
|
+
{url: `/api/integrations/api-keys/${keyId}`, method: 'DELETE'
|
|
3216
2222
|
},
|
|
3217
2223
|
options);
|
|
3218
2224
|
}
|
|
3219
2225
|
|
|
3220
2226
|
/**
|
|
3221
|
-
*
|
|
3222
|
-
* @summary List incoming webhooks for a channel
|
|
2227
|
+
* @summary Get all integrations for a workspace
|
|
3223
2228
|
*/
|
|
3224
|
-
const
|
|
2229
|
+
const workspaceIntegrationsControllerGetWorkspaceIntegrations = (
|
|
3225
2230
|
slug: string,
|
|
3226
|
-
channelId: string,
|
|
3227
2231
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3228
2232
|
return customInstance<void>(
|
|
3229
|
-
{url: `/api/
|
|
2233
|
+
{url: `/api/workspaces/${slug}/integrations`, method: 'GET'
|
|
3230
2234
|
},
|
|
3231
2235
|
options);
|
|
3232
2236
|
}
|
|
3233
2237
|
|
|
3234
2238
|
/**
|
|
3235
|
-
*
|
|
3236
|
-
* @summary Create an incoming webhook for a channel
|
|
2239
|
+
* @summary Create a new integration for a workspace
|
|
3237
2240
|
*/
|
|
3238
|
-
const
|
|
2241
|
+
const workspaceIntegrationsControllerCreateWorkspaceIntegration = (
|
|
3239
2242
|
slug: string,
|
|
3240
|
-
|
|
3241
|
-
createChannelIncomingWebhookDto: BodyType<CreateChannelIncomingWebhookDto>,
|
|
2243
|
+
createIntegrationDto: BodyType<CreateIntegrationDto>,
|
|
3242
2244
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3243
2245
|
return customInstance<void>(
|
|
3244
|
-
{url: `/api/
|
|
2246
|
+
{url: `/api/workspaces/${slug}/integrations`, method: 'POST',
|
|
3245
2247
|
headers: {'Content-Type': 'application/json', },
|
|
3246
|
-
data:
|
|
2248
|
+
data: createIntegrationDto
|
|
3247
2249
|
},
|
|
3248
2250
|
options);
|
|
3249
2251
|
}
|
|
3250
2252
|
|
|
3251
2253
|
/**
|
|
3252
|
-
*
|
|
3253
|
-
* @summary Get details of a channel incoming webhook
|
|
2254
|
+
* @summary Get integration details
|
|
3254
2255
|
*/
|
|
3255
|
-
const
|
|
2256
|
+
const workspaceIntegrationsControllerGetWorkspaceIntegration = (
|
|
3256
2257
|
slug: string,
|
|
3257
|
-
|
|
3258
|
-
webhookId: string,
|
|
2258
|
+
integrationId: string,
|
|
3259
2259
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3260
2260
|
return customInstance<void>(
|
|
3261
|
-
{url: `/api/
|
|
2261
|
+
{url: `/api/workspaces/${slug}/integrations/${integrationId}`, method: 'GET'
|
|
3262
2262
|
},
|
|
3263
2263
|
options);
|
|
3264
2264
|
}
|
|
3265
2265
|
|
|
3266
2266
|
/**
|
|
3267
|
-
*
|
|
3268
|
-
* @summary Update a channel incoming webhook
|
|
2267
|
+
* @summary Update an integration
|
|
3269
2268
|
*/
|
|
3270
|
-
const
|
|
2269
|
+
const workspaceIntegrationsControllerUpdateWorkspaceIntegration = (
|
|
3271
2270
|
slug: string,
|
|
3272
|
-
|
|
3273
|
-
webhookId: string,
|
|
3274
|
-
updateChannelIncomingWebhookDto: BodyType<UpdateChannelIncomingWebhookDto>,
|
|
2271
|
+
integrationId: string,
|
|
3275
2272
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3276
2273
|
return customInstance<void>(
|
|
3277
|
-
{url: `/api/
|
|
3278
|
-
headers: {'Content-Type': 'application/json', },
|
|
3279
|
-
data: updateChannelIncomingWebhookDto
|
|
2274
|
+
{url: `/api/workspaces/${slug}/integrations/${integrationId}`, method: 'PATCH'
|
|
3280
2275
|
},
|
|
3281
2276
|
options);
|
|
3282
2277
|
}
|
|
3283
2278
|
|
|
3284
2279
|
/**
|
|
3285
|
-
*
|
|
3286
|
-
* @summary Delete a channel incoming webhook
|
|
2280
|
+
* @summary Delete an integration
|
|
3287
2281
|
*/
|
|
3288
|
-
const
|
|
2282
|
+
const workspaceIntegrationsControllerDeleteWorkspaceIntegration = (
|
|
3289
2283
|
slug: string,
|
|
3290
|
-
|
|
3291
|
-
webhookId: string,
|
|
2284
|
+
integrationId: string,
|
|
3292
2285
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3293
2286
|
return customInstance<void>(
|
|
3294
|
-
{url: `/api/
|
|
2287
|
+
{url: `/api/workspaces/${slug}/integrations/${integrationId}`, method: 'DELETE'
|
|
3295
2288
|
},
|
|
3296
2289
|
options);
|
|
3297
2290
|
}
|
|
3298
2291
|
|
|
3299
2292
|
/**
|
|
3300
|
-
*
|
|
3301
|
-
* @summary Execute a channel incoming webhook (Token in URL)
|
|
2293
|
+
* @summary Test an integration
|
|
3302
2294
|
*/
|
|
3303
|
-
const
|
|
3304
|
-
|
|
3305
|
-
|
|
2295
|
+
const workspaceIntegrationsControllerTestWorkspaceIntegration = (
|
|
2296
|
+
slug: string,
|
|
2297
|
+
integrationId: string,
|
|
3306
2298
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3307
2299
|
return customInstance<void>(
|
|
3308
|
-
{url: `/api/
|
|
3309
|
-
headers: {'Content-Type': 'application/json', },
|
|
3310
|
-
data: executeChannelIncomingWebhookDto
|
|
2300
|
+
{url: `/api/workspaces/${slug}/integrations/${integrationId}/test`, method: 'POST'
|
|
3311
2301
|
},
|
|
3312
2302
|
options);
|
|
3313
2303
|
}
|
|
3314
2304
|
|
|
3315
2305
|
/**
|
|
3316
|
-
*
|
|
3317
|
-
* @summary Execute a channel incoming webhook (Channel in URL)
|
|
2306
|
+
* @summary Get all integration webhooks for a workspace
|
|
3318
2307
|
*/
|
|
3319
|
-
const
|
|
3320
|
-
|
|
3321
|
-
executeChannelIncomingWebhookDto: BodyType<ExecuteChannelIncomingWebhookDto>,
|
|
3322
|
-
params?: V3ChannelIncomingWebhooksControllerExecuteWebhookByChannelIdParams,
|
|
2308
|
+
const workspaceIntegrationsControllerGetWorkspaceWebhooks = (
|
|
2309
|
+
slug: string,
|
|
3323
2310
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3324
2311
|
return customInstance<void>(
|
|
3325
|
-
{url: `/api/
|
|
3326
|
-
headers: {'Content-Type': 'application/json', },
|
|
3327
|
-
data: executeChannelIncomingWebhookDto,
|
|
3328
|
-
params
|
|
2312
|
+
{url: `/api/workspaces/${slug}/integrations/webhooks`, method: 'GET'
|
|
3329
2313
|
},
|
|
3330
2314
|
options);
|
|
3331
2315
|
}
|
|
3332
2316
|
|
|
3333
2317
|
/**
|
|
3334
|
-
* @summary
|
|
2318
|
+
* @summary Create an integration webhook for a workspace
|
|
3335
2319
|
*/
|
|
3336
|
-
const
|
|
3337
|
-
|
|
2320
|
+
const workspaceIntegrationsControllerCreateWorkspaceWebhook = (
|
|
2321
|
+
slug: string,
|
|
2322
|
+
createIntegrationWebhookDto: BodyType<CreateIntegrationWebhookDto>,
|
|
3338
2323
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3339
2324
|
return customInstance<void>(
|
|
3340
|
-
{url: `/api/
|
|
3341
|
-
|
|
2325
|
+
{url: `/api/workspaces/${slug}/integrations/webhooks`, method: 'POST',
|
|
2326
|
+
headers: {'Content-Type': 'application/json', },
|
|
2327
|
+
data: createIntegrationWebhookDto
|
|
3342
2328
|
},
|
|
3343
2329
|
options);
|
|
3344
2330
|
}
|
|
3345
2331
|
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
*/
|
|
3349
|
-
const invitationsControllerCreateInvitation = (
|
|
3350
|
-
createInvitationDto: BodyType<CreateInvitationDto>,
|
|
2332
|
+
const ablyControllerGetToken = (
|
|
2333
|
+
|
|
3351
2334
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3352
2335
|
return customInstance<void>(
|
|
3353
|
-
{url: `/api/
|
|
3354
|
-
headers: {'Content-Type': 'application/json', },
|
|
3355
|
-
data: createInvitationDto
|
|
2336
|
+
{url: `/api/ably/token`, method: 'POST'
|
|
3356
2337
|
},
|
|
3357
2338
|
options);
|
|
3358
2339
|
}
|
|
3359
2340
|
|
|
3360
2341
|
/**
|
|
3361
|
-
* @summary
|
|
2342
|
+
* @summary Upload a file
|
|
3362
2343
|
*/
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3365
|
-
options?: SecondParameter<typeof customInstance>,) => {
|
|
2344
|
+
const storageControllerUploadFile = (
|
|
2345
|
+
storageControllerUploadFileBody: BodyType<StorageControllerUploadFileBody>,
|
|
2346
|
+
options?: SecondParameter<typeof customInstance>,) => {const formData = new FormData();
|
|
2347
|
+
if(storageControllerUploadFileBody.file !== undefined) {
|
|
2348
|
+
formData.append('file', storageControllerUploadFileBody.file)
|
|
2349
|
+
}
|
|
2350
|
+
|
|
3366
2351
|
return customInstance<void>(
|
|
3367
|
-
{url: `/api/
|
|
2352
|
+
{url: `/api/storage/upload`, method: 'POST',
|
|
2353
|
+
headers: {'Content-Type': 'multipart/form-data', },
|
|
2354
|
+
data: formData
|
|
3368
2355
|
},
|
|
3369
2356
|
options);
|
|
3370
2357
|
}
|
|
3371
2358
|
|
|
3372
2359
|
/**
|
|
3373
|
-
* @summary
|
|
2360
|
+
* @summary Proxy file request using high-performance streaming
|
|
3374
2361
|
*/
|
|
3375
|
-
const
|
|
3376
|
-
|
|
2362
|
+
const shortUrlControllerRedirect = (
|
|
2363
|
+
code: string,
|
|
3377
2364
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3378
2365
|
return customInstance<void>(
|
|
3379
|
-
{url: `/
|
|
2366
|
+
{url: `/s/${code}`, method: 'GET'
|
|
3380
2367
|
},
|
|
3381
2368
|
options);
|
|
3382
2369
|
}
|
|
@@ -3438,7 +2425,7 @@ const callsControllerGetParticipants = (
|
|
|
3438
2425
|
* @summary Get scheduled calls for a workspace
|
|
3439
2426
|
*/
|
|
3440
2427
|
const callsControllerGetScheduledCalls = (
|
|
3441
|
-
params
|
|
2428
|
+
params?: CallsControllerGetScheduledCallsParams,
|
|
3442
2429
|
options?: SecondParameter<typeof customInstance>,) => {
|
|
3443
2430
|
return customInstance<void>(
|
|
3444
2431
|
{url: `/api/calls/scheduled`, method: 'GET',
|
|
@@ -4195,6 +3182,46 @@ const channelsControllerDeleteChannel = (
|
|
|
4195
3182
|
options);
|
|
4196
3183
|
}
|
|
4197
3184
|
|
|
3185
|
+
/**
|
|
3186
|
+
* @summary Get members of a channel
|
|
3187
|
+
*/
|
|
3188
|
+
const channelsControllerGetChannelMembers = (
|
|
3189
|
+
slug: string,
|
|
3190
|
+
channelId: string,
|
|
3191
|
+
options?: SecondParameter<typeof customInstance>,) => {
|
|
3192
|
+
return customInstance<void>(
|
|
3193
|
+
{url: `/api/workspaces/${slug}/channels/${channelId}/members`, method: 'GET'
|
|
3194
|
+
},
|
|
3195
|
+
options);
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* @summary Add members to a channel
|
|
3200
|
+
*/
|
|
3201
|
+
const channelsControllerAddChannelMembers = (
|
|
3202
|
+
slug: string,
|
|
3203
|
+
channelId: string,
|
|
3204
|
+
options?: SecondParameter<typeof customInstance>,) => {
|
|
3205
|
+
return customInstance<void>(
|
|
3206
|
+
{url: `/api/workspaces/${slug}/channels/${channelId}/members`, method: 'POST'
|
|
3207
|
+
},
|
|
3208
|
+
options);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* @summary Remove a member from a channel
|
|
3213
|
+
*/
|
|
3214
|
+
const channelsControllerRemoveChannelMember = (
|
|
3215
|
+
slug: string,
|
|
3216
|
+
channelId: string,
|
|
3217
|
+
targetUserId: string,
|
|
3218
|
+
options?: SecondParameter<typeof customInstance>,) => {
|
|
3219
|
+
return customInstance<void>(
|
|
3220
|
+
{url: `/api/workspaces/${slug}/channels/${channelId}/members/${targetUserId}`, method: 'DELETE'
|
|
3221
|
+
},
|
|
3222
|
+
options);
|
|
3223
|
+
}
|
|
3224
|
+
|
|
4198
3225
|
/**
|
|
4199
3226
|
* @summary Get all departments in a workspace
|
|
4200
3227
|
*/
|
|
@@ -4956,105 +3983,25 @@ const supportControllerGetCustomerProfiles = (
|
|
|
4956
3983
|
options);
|
|
4957
3984
|
}
|
|
4958
3985
|
|
|
4959
|
-
return {appControllerGetHealth,appControllerGetHello,appControllerGetRealtimeConfig,usersControllerSearchUsers,usersControllerGetMe,usersControllerUpdateMe,usersControllerGetUser,usersControllerGetSocialProfile,usersControllerBlockUser,usersControllerUnblockUser,usersControllerRegisterDeviceToken,usersControllerGetDeviceTokens,usersControllerDeleteDeviceToken,
|
|
3986
|
+
return {appControllerGetHealth,appControllerGetHello,appControllerGetRealtimeConfig,appControllerGetLinkPreview,usersControllerGetUsers,usersControllerSearchUsers,usersControllerGetMe,usersControllerPatchMe,usersControllerUpdateMe,usersControllerGetUser,usersControllerPatchUser,usersControllerGetSocialProfile,usersControllerBlockUser,usersControllerUnblockUser,usersControllerUpdateMyStatus,usersControllerRegisterDeviceToken,usersControllerGetDeviceTokens,usersControllerDeleteDeviceToken,v10UsersControllerGetUser,v10UsersControllerGetMe,v10GatewayControllerGetBotGateway,v10GatewayControllerBotAuth,v10ChannelsControllerGetChannel,v10ChannelsControllerCreateMessage,v10ChannelsControllerGetMessages,v10ChannelsControllerUpdateMessage,v10ChannelsControllerDeleteMessage,v10GuildsControllerGetGuild,v10GuildsControllerGetChannels,v10GuildsControllerGetMembers,v10GuildsControllerGetRoles,v10GuildsControllerAddMemberRole,v10GuildsControllerRemoveMemberRole,v10ApplicationsControllerGetCommands,v10ApplicationsControllerCreateCommand,v10ApplicationsControllerGetGuildCommands,v10ApplicationsControllerCreateGuildCommand,v10InteractionsControllerHandleCallback,v10EnterpriseControllerCreateAnnouncement,v3OAuthControllerGetToken,v3WorkspacesControllerGetWorkspaces,v3WorkspacesControllerProvisionWorkspace,v3WorkspacesControllerGetWorkspaceBySlug,v3WorkspacesControllerUpdateWorkspace,v3WorkspacesControllerDeleteWorkspace,v3WorkspacesControllerGetWorkspaceMembers,v3WorkspacesControllerAddWorkspaceMember,v3WorkspacesControllerGetWorkspaceMember,v3WorkspacesControllerUpdateWorkspaceMember,v3WorkspacesControllerDeleteWorkspaceMember,v3WebhooksControllerGetWebhooks,v3WebhooksControllerCreateWebhook,v3WebhooksControllerGetWebhook,v3WebhooksControllerUpdateWebhook,v3WebhooksControllerDeleteWebhook,v3ChannelIncomingWebhooksControllerGetChannelWebhooks,v3ChannelIncomingWebhooksControllerCreateChannelWebhook,v3ChannelIncomingWebhooksControllerGetChannelWebhook,v3ChannelIncomingWebhooksControllerUpdateChannelWebhook,v3ChannelIncomingWebhooksControllerDeleteChannelWebhook,v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken,v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId,v3OrganizationsControllerGetOrganizationWorkspaces,v3OrganizationsControllerGetOrganization,v3OrganizationsControllerUpdateOrganization,v3OrganizationsControllerGetM2mApplications,v3OrganizationsControllerCreateM2mApplication,v3OrganizationsControllerUpdateM2mApplication,v3OrganizationsControllerDeleteM2mApplication,notificationsControllerGetNotifications,notificationsControllerGetNotificationById,notificationsControllerUpdateNotification,notificationsControllerDeleteNotification,notificationsControllerMarkAllRead,notificationsControllerGetWorkspaceSettings,notificationsControllerUpdateWorkspaceSettings,notificationsControllerGetChannelSettings,notificationsControllerUpdateChannelSettings,invitationsControllerGetInvitations,invitationsControllerCreateInvitation,invitationsControllerGetInvitationByToken,invitationsControllerAcceptInvitation,integrationsControllerHandlePlaneWebhook,integrationsControllerHandleHulyWebhook,integrationsControllerGetStats,integrationsControllerGetWebhooks,integrationsControllerCreateWebhook,integrationsControllerUpdateWebhook,integrationsControllerDeleteWebhook,integrationsControllerGetWebhookLogs,integrationsControllerGetApiKeys,integrationsControllerUpdateApiKey,integrationsControllerDeleteApiKey,workspaceIntegrationsControllerGetWorkspaceIntegrations,workspaceIntegrationsControllerCreateWorkspaceIntegration,workspaceIntegrationsControllerGetWorkspaceIntegration,workspaceIntegrationsControllerUpdateWorkspaceIntegration,workspaceIntegrationsControllerDeleteWorkspaceIntegration,workspaceIntegrationsControllerTestWorkspaceIntegration,workspaceIntegrationsControllerGetWorkspaceWebhooks,workspaceIntegrationsControllerCreateWorkspaceWebhook,ablyControllerGetToken,storageControllerUploadFile,shortUrlControllerRedirect,callsControllerStartCall,callsControllerUpdateCall,callsControllerInviteToCall,callsControllerGetParticipants,callsControllerGetScheduledCalls,callsControllerScheduleCall,callsControllerPlaySoundboardSound,channelsControllerGetGlobalChannels,channelsControllerCreateChannel,channelsControllerGetMessages,channelsControllerCreateMessage,channelsControllerUpdateMessage,channelsControllerDeleteMessage,channelsControllerMarkAsRead,channelsControllerAddReaction,channelsControllerRemoveReaction,channelsControllerShareChannel,channelsControllerCreateReply,adminControllerGetStats,adminControllerGetMembers,adminControllerUpdateMemberRole,adminControllerGetAssets,adminControllerCreateAsset,adminControllerUpdateAsset,adminControllerDeleteAsset,adminControllerGetProfileAssets,adminControllerCreateProfileAsset,adminControllerGetAssetStats,adminControllerUploadFile,dmsControllerGetDms,dmsControllerCreateDm,dmsControllerGetDm,dmsControllerDeleteDm,dmsControllerGetMessages,dmsControllerCreateMessage,dmsControllerUpdateMessage,dmsControllerDeleteMessage,dmsControllerMarkAsRead,dmsControllerAddReaction,dmsControllerRemoveReaction,friendsControllerGetFriends,friendsControllerGetFriendRequests,friendsControllerSendFriendRequest,friendsControllerUpdateFriendRequest,friendsControllerDeleteFriendRequest,workspacesControllerGetWorkspaces,workspacesControllerCreateWorkspace,workspacesControllerGetWorkspaceRoles,workspacesControllerGetWorkspaceSlugRoles,workspacesControllerDiscoverWorkspaces,workspacesControllerJoinWorkspace,workspacesControllerGetWorkspaceBySlug,workspacesControllerUpdateWorkspaceBySlug,workspacesControllerDeleteWorkspaceBySlug,membersControllerGetWorkspaceMembers,membersControllerUpdateMember,membersControllerRemoveMember,channelsControllerGetWorkspaceChannels,channelsControllerGetChannel,channelsControllerUpdateChannel,channelsControllerDeleteChannel,channelsControllerGetChannelMembers,channelsControllerAddChannelMembers,channelsControllerRemoveChannelMember,departmentsControllerGetDepartments,departmentsControllerCreateDepartment,departmentsControllerGetDepartment,departmentsControllerUpdateDepartment,departmentsControllerDeleteDepartment,departmentsControllerGetAnnouncements,departmentsControllerCreateAnnouncement,teamsControllerGetTeams,teamsControllerCreateTeam,teamsControllerAddMember,teamsControllerRemoveMember,messagesControllerGetMessages,messagesControllerCreateMessage,messagesControllerUpdateMessage,messagesControllerDeleteMessage,messagesControllerMarkAsRead,messagesControllerAddReaction,messagesControllerRemoveReaction,messagesControllerCreateReply,emojisControllerGetEmojis,emojisControllerCreateEmoji,auditLogsControllerGetAuditLogs,auditLogsControllerExportAuditLogs,inviteLinksControllerGetInviteLinks,inviteLinksControllerCreateInviteLink,apiTokensControllerGetApiTokens,apiTokensControllerCreateApiToken,apiTokensControllerDeleteApiToken,webhooksControllerGetWebhooks,webhooksControllerCreateWebhook,webhooksControllerUpdateWebhook,webhooksControllerDeleteWebhook,callsControllerGetActiveCalls,searchControllerSearch,deviceAuthControllerGenerateQR,deviceAuthControllerCheckStatus,deviceAuthControllerAuthorize,deviceAuthControllerDeny,androidAuthControllerGetProfile,androidAuthControllerChangePassword,androidAuthControllerCheckUsername,androidAuthControllerLogin,androidAuthControllerSignup,androidAuthControllerGoogleLogin,androidAuthControllerGithubLogin,androidAuthControllerRefresh,scheduledNotificationsControllerGetNotifications,scheduledNotificationsControllerCreateNotification,scheduledNotificationsControllerUpdateNotification,scheduledNotificationsControllerDeleteNotification,assetsControllerGetEligibleAssets,supportControllerCreateTicket,supportControllerGetTickets,supportControllerStartLiveChat,supportControllerEndLiveChat,supportControllerUpdateTicketStatus,supportControllerAssignTicket,supportControllerCreateCustomerProfile,supportControllerGetCustomerProfiles}};
|
|
4960
3987
|
export type AppControllerGetHealthResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['appControllerGetHealth']>>>
|
|
4961
3988
|
export type AppControllerGetHelloResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['appControllerGetHello']>>>
|
|
4962
3989
|
export type AppControllerGetRealtimeConfigResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['appControllerGetRealtimeConfig']>>>
|
|
3990
|
+
export type AppControllerGetLinkPreviewResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['appControllerGetLinkPreview']>>>
|
|
3991
|
+
export type UsersControllerGetUsersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerGetUsers']>>>
|
|
4963
3992
|
export type UsersControllerSearchUsersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerSearchUsers']>>>
|
|
4964
3993
|
export type UsersControllerGetMeResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerGetMe']>>>
|
|
3994
|
+
export type UsersControllerPatchMeResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerPatchMe']>>>
|
|
4965
3995
|
export type UsersControllerUpdateMeResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerUpdateMe']>>>
|
|
4966
3996
|
export type UsersControllerGetUserResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerGetUser']>>>
|
|
3997
|
+
export type UsersControllerPatchUserResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerPatchUser']>>>
|
|
4967
3998
|
export type UsersControllerGetSocialProfileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerGetSocialProfile']>>>
|
|
4968
3999
|
export type UsersControllerBlockUserResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerBlockUser']>>>
|
|
4969
4000
|
export type UsersControllerUnblockUserResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerUnblockUser']>>>
|
|
4001
|
+
export type UsersControllerUpdateMyStatusResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerUpdateMyStatus']>>>
|
|
4970
4002
|
export type UsersControllerRegisterDeviceTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerRegisterDeviceToken']>>>
|
|
4971
4003
|
export type UsersControllerGetDeviceTokensResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerGetDeviceTokens']>>>
|
|
4972
4004
|
export type UsersControllerDeleteDeviceTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['usersControllerDeleteDeviceToken']>>>
|
|
4973
|
-
export type V2WorkspacesControllerGetMembersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WorkspacesControllerGetMembers']>>>
|
|
4974
|
-
export type V2WorkspacesControllerAddMemberResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WorkspacesControllerAddMember']>>>
|
|
4975
|
-
export type V2WorkspacesControllerGetMemberResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WorkspacesControllerGetMember']>>>
|
|
4976
|
-
export type V2WorkspacesControllerRemoveMemberResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WorkspacesControllerRemoveMember']>>>
|
|
4977
|
-
export type V2MessagesControllerGetChannelsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerGetChannels']>>>
|
|
4978
|
-
export type V2MessagesControllerCreateChannelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerCreateChannel']>>>
|
|
4979
|
-
export type V2MessagesControllerUploadChannelIconResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerUploadChannelIcon']>>>
|
|
4980
|
-
export type V2MessagesControllerGetChannelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerGetChannel']>>>
|
|
4981
|
-
export type V2MessagesControllerUpdateChannelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerUpdateChannel']>>>
|
|
4982
|
-
export type V2MessagesControllerDeleteChannelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerDeleteChannel']>>>
|
|
4983
|
-
export type V2MessagesControllerGetMessagesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerGetMessages']>>>
|
|
4984
|
-
export type V2MessagesControllerSendMessageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessagesControllerSendMessage']>>>
|
|
4985
|
-
export type V2SearchControllerSearchMembersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2SearchControllerSearchMembers']>>>
|
|
4986
|
-
export type V2SearchControllerSearchMessagesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2SearchControllerSearchMessages']>>>
|
|
4987
|
-
export type V2ApiTokensControllerGetTokensResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApiTokensControllerGetTokens']>>>
|
|
4988
|
-
export type V2ApiTokensControllerCreateTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApiTokensControllerCreateToken']>>>
|
|
4989
|
-
export type V2ApiTokensControllerDeleteTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApiTokensControllerDeleteToken']>>>
|
|
4990
|
-
export type V2ApiTokensControllerRotateTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApiTokensControllerRotateToken']>>>
|
|
4991
|
-
export type V2WebhooksControllerGetWebhooksResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WebhooksControllerGetWebhooks']>>>
|
|
4992
|
-
export type V2WebhooksControllerCreateWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WebhooksControllerCreateWebhook']>>>
|
|
4993
|
-
export type V2WebhooksControllerGetWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WebhooksControllerGetWebhook']>>>
|
|
4994
|
-
export type V2WebhooksControllerUpdateWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WebhooksControllerUpdateWebhook']>>>
|
|
4995
|
-
export type V2WebhooksControllerDeleteWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2WebhooksControllerDeleteWebhook']>>>
|
|
4996
|
-
export type V2ThreadsControllerGetThreadsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ThreadsControllerGetThreads']>>>
|
|
4997
|
-
export type V2ThreadsControllerGetThreadMessagesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ThreadsControllerGetThreadMessages']>>>
|
|
4998
|
-
export type V2ThreadsControllerGetThreadByContextResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ThreadsControllerGetThreadByContext']>>>
|
|
4999
|
-
export type V2MessageActionsControllerHandleActionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2MessageActionsControllerHandleAction']>>>
|
|
5000
|
-
export type V2DepartmentsControllerGetDepartmentsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2DepartmentsControllerGetDepartments']>>>
|
|
5001
|
-
export type V2DepartmentsControllerCreateDepartmentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2DepartmentsControllerCreateDepartment']>>>
|
|
5002
|
-
export type V2DepartmentsControllerGetDepartmentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2DepartmentsControllerGetDepartment']>>>
|
|
5003
|
-
export type V2DepartmentsControllerUpdateDepartmentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2DepartmentsControllerUpdateDepartment']>>>
|
|
5004
|
-
export type V2DepartmentsControllerDeleteDepartmentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2DepartmentsControllerDeleteDepartment']>>>
|
|
5005
|
-
export type V2TeamsControllerGetTeamsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2TeamsControllerGetTeams']>>>
|
|
5006
|
-
export type V2TeamsControllerCreateTeamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2TeamsControllerCreateTeam']>>>
|
|
5007
|
-
export type V2TeamsControllerGetTeamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2TeamsControllerGetTeam']>>>
|
|
5008
|
-
export type V2TeamsControllerUpdateTeamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2TeamsControllerUpdateTeam']>>>
|
|
5009
|
-
export type V2TeamsControllerDeleteTeamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2TeamsControllerDeleteTeam']>>>
|
|
5010
|
-
export type V2AnnouncementsControllerGetAnnouncementsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2AnnouncementsControllerGetAnnouncements']>>>
|
|
5011
|
-
export type V2AnnouncementsControllerCreateAnnouncementResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2AnnouncementsControllerCreateAnnouncement']>>>
|
|
5012
|
-
export type V2AnnouncementsControllerGetAnnouncementResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2AnnouncementsControllerGetAnnouncement']>>>
|
|
5013
|
-
export type V2AnnouncementsControllerUpdateAnnouncementResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2AnnouncementsControllerUpdateAnnouncement']>>>
|
|
5014
|
-
export type V2AnnouncementsControllerDeleteAnnouncementResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2AnnouncementsControllerDeleteAnnouncement']>>>
|
|
5015
|
-
export type V2OAuthControllerGetTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2OAuthControllerGetToken']>>>
|
|
5016
|
-
export type V2ApplicationsControllerCreateApplicationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApplicationsControllerCreateApplication']>>>
|
|
5017
|
-
export type V2ApplicationsControllerGetApplicationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApplicationsControllerGetApplications']>>>
|
|
5018
|
-
export type V2ApplicationsControllerGetApplicationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApplicationsControllerGetApplication']>>>
|
|
5019
|
-
export type V2ApplicationsControllerUpdateApplicationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApplicationsControllerUpdateApplication']>>>
|
|
5020
|
-
export type V2ApplicationsControllerDeleteApplicationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApplicationsControllerDeleteApplication']>>>
|
|
5021
|
-
export type V2ApplicationsControllerResetBotTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApplicationsControllerResetBotToken']>>>
|
|
5022
|
-
export type V2ApplicationsControllerInstallBotResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ApplicationsControllerInstallBot']>>>
|
|
5023
|
-
export type V2ContactControllerSubmitContactFormResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v2ContactControllerSubmitContactForm']>>>
|
|
5024
|
-
export type ProvisioningControllerProvisionWorkspaceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['provisioningControllerProvisionWorkspace']>>>
|
|
5025
|
-
export type OrganizationsControllerGetOrganizationWorkspacesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['organizationsControllerGetOrganizationWorkspaces']>>>
|
|
5026
|
-
export type OrganizationsControllerGetOrganizationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['organizationsControllerGetOrganization']>>>
|
|
5027
|
-
export type OrganizationsControllerUpdateOrganizationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['organizationsControllerUpdateOrganization']>>>
|
|
5028
|
-
export type IntegrationsControllerHandlePlaneWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerHandlePlaneWebhook']>>>
|
|
5029
|
-
export type IntegrationsControllerHandleHulyWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerHandleHulyWebhook']>>>
|
|
5030
|
-
export type IntegrationsControllerGetStatsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetStats']>>>
|
|
5031
|
-
export type IntegrationsControllerGetWebhooksResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetWebhooks']>>>
|
|
5032
|
-
export type IntegrationsControllerCreateWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerCreateWebhook']>>>
|
|
5033
|
-
export type IntegrationsControllerUpdateWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerUpdateWebhook']>>>
|
|
5034
|
-
export type IntegrationsControllerDeleteWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerDeleteWebhook']>>>
|
|
5035
|
-
export type IntegrationsControllerGetWebhookLogsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetWebhookLogs']>>>
|
|
5036
|
-
export type IntegrationsControllerGetApiKeysResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetApiKeys']>>>
|
|
5037
|
-
export type IntegrationsControllerUpdateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerUpdateApiKey']>>>
|
|
5038
|
-
export type IntegrationsControllerDeleteApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerDeleteApiKey']>>>
|
|
5039
|
-
export type WorkspaceIntegrationsControllerGetWorkspaceIntegrationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerGetWorkspaceIntegrations']>>>
|
|
5040
|
-
export type WorkspaceIntegrationsControllerCreateWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerCreateWorkspaceIntegration']>>>
|
|
5041
|
-
export type WorkspaceIntegrationsControllerGetWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerGetWorkspaceIntegration']>>>
|
|
5042
|
-
export type WorkspaceIntegrationsControllerUpdateWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerUpdateWorkspaceIntegration']>>>
|
|
5043
|
-
export type WorkspaceIntegrationsControllerDeleteWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerDeleteWorkspaceIntegration']>>>
|
|
5044
|
-
export type WorkspaceIntegrationsControllerTestWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerTestWorkspaceIntegration']>>>
|
|
5045
|
-
export type WorkspaceIntegrationsControllerGetWorkspaceWebhooksResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerGetWorkspaceWebhooks']>>>
|
|
5046
|
-
export type WorkspaceIntegrationsControllerCreateWorkspaceWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerCreateWorkspaceWebhook']>>>
|
|
5047
|
-
export type NotificationsControllerGetNotificationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerGetNotifications']>>>
|
|
5048
|
-
export type NotificationsControllerMarkAllReadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerMarkAllRead']>>>
|
|
5049
|
-
export type NotificationsControllerGetWorkspaceSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerGetWorkspaceSettings']>>>
|
|
5050
|
-
export type NotificationsControllerUpdateWorkspaceSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerUpdateWorkspaceSettings']>>>
|
|
5051
|
-
export type NotificationsControllerGetChannelSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerGetChannelSettings']>>>
|
|
5052
|
-
export type NotificationsControllerUpdateChannelSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerUpdateChannelSettings']>>>
|
|
5053
|
-
export type NotificationsControllerUpdateNotificationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerUpdateNotification']>>>
|
|
5054
|
-
export type NotificationsControllerDeleteNotificationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerDeleteNotification']>>>
|
|
5055
|
-
export type AblyControllerGetTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['ablyControllerGetToken']>>>
|
|
5056
|
-
export type StorageControllerUploadFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['storageControllerUploadFile']>>>
|
|
5057
|
-
export type ShortUrlControllerRedirectResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['shortUrlControllerRedirect']>>>
|
|
5058
4005
|
export type V10UsersControllerGetUserResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v10UsersControllerGetUser']>>>
|
|
5059
4006
|
export type V10UsersControllerGetMeResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v10UsersControllerGetMe']>>>
|
|
5060
4007
|
export type V10GatewayControllerGetBotGatewayResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v10GatewayControllerGetBotGateway']>>>
|
|
@@ -5099,10 +4046,48 @@ export type V3ChannelIncomingWebhooksControllerUpdateChannelWebhookResult = NonN
|
|
|
5099
4046
|
export type V3ChannelIncomingWebhooksControllerDeleteChannelWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3ChannelIncomingWebhooksControllerDeleteChannelWebhook']>>>
|
|
5100
4047
|
export type V3ChannelIncomingWebhooksControllerExecuteWebhookByUrlTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3ChannelIncomingWebhooksControllerExecuteWebhookByUrlToken']>>>
|
|
5101
4048
|
export type V3ChannelIncomingWebhooksControllerExecuteWebhookByChannelIdResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3ChannelIncomingWebhooksControllerExecuteWebhookByChannelId']>>>
|
|
4049
|
+
export type V3OrganizationsControllerGetOrganizationWorkspacesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3OrganizationsControllerGetOrganizationWorkspaces']>>>
|
|
4050
|
+
export type V3OrganizationsControllerGetOrganizationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3OrganizationsControllerGetOrganization']>>>
|
|
4051
|
+
export type V3OrganizationsControllerUpdateOrganizationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3OrganizationsControllerUpdateOrganization']>>>
|
|
4052
|
+
export type V3OrganizationsControllerGetM2mApplicationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3OrganizationsControllerGetM2mApplications']>>>
|
|
4053
|
+
export type V3OrganizationsControllerCreateM2mApplicationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3OrganizationsControllerCreateM2mApplication']>>>
|
|
4054
|
+
export type V3OrganizationsControllerUpdateM2mApplicationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3OrganizationsControllerUpdateM2mApplication']>>>
|
|
4055
|
+
export type V3OrganizationsControllerDeleteM2mApplicationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['v3OrganizationsControllerDeleteM2mApplication']>>>
|
|
4056
|
+
export type NotificationsControllerGetNotificationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerGetNotifications']>>>
|
|
4057
|
+
export type NotificationsControllerGetNotificationByIdResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerGetNotificationById']>>>
|
|
4058
|
+
export type NotificationsControllerUpdateNotificationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerUpdateNotification']>>>
|
|
4059
|
+
export type NotificationsControllerDeleteNotificationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerDeleteNotification']>>>
|
|
4060
|
+
export type NotificationsControllerMarkAllReadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerMarkAllRead']>>>
|
|
4061
|
+
export type NotificationsControllerGetWorkspaceSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerGetWorkspaceSettings']>>>
|
|
4062
|
+
export type NotificationsControllerUpdateWorkspaceSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerUpdateWorkspaceSettings']>>>
|
|
4063
|
+
export type NotificationsControllerGetChannelSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerGetChannelSettings']>>>
|
|
4064
|
+
export type NotificationsControllerUpdateChannelSettingsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['notificationsControllerUpdateChannelSettings']>>>
|
|
5102
4065
|
export type InvitationsControllerGetInvitationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['invitationsControllerGetInvitations']>>>
|
|
5103
4066
|
export type InvitationsControllerCreateInvitationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['invitationsControllerCreateInvitation']>>>
|
|
5104
4067
|
export type InvitationsControllerGetInvitationByTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['invitationsControllerGetInvitationByToken']>>>
|
|
5105
4068
|
export type InvitationsControllerAcceptInvitationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['invitationsControllerAcceptInvitation']>>>
|
|
4069
|
+
export type IntegrationsControllerHandlePlaneWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerHandlePlaneWebhook']>>>
|
|
4070
|
+
export type IntegrationsControllerHandleHulyWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerHandleHulyWebhook']>>>
|
|
4071
|
+
export type IntegrationsControllerGetStatsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetStats']>>>
|
|
4072
|
+
export type IntegrationsControllerGetWebhooksResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetWebhooks']>>>
|
|
4073
|
+
export type IntegrationsControllerCreateWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerCreateWebhook']>>>
|
|
4074
|
+
export type IntegrationsControllerUpdateWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerUpdateWebhook']>>>
|
|
4075
|
+
export type IntegrationsControllerDeleteWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerDeleteWebhook']>>>
|
|
4076
|
+
export type IntegrationsControllerGetWebhookLogsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetWebhookLogs']>>>
|
|
4077
|
+
export type IntegrationsControllerGetApiKeysResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerGetApiKeys']>>>
|
|
4078
|
+
export type IntegrationsControllerUpdateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerUpdateApiKey']>>>
|
|
4079
|
+
export type IntegrationsControllerDeleteApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['integrationsControllerDeleteApiKey']>>>
|
|
4080
|
+
export type WorkspaceIntegrationsControllerGetWorkspaceIntegrationsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerGetWorkspaceIntegrations']>>>
|
|
4081
|
+
export type WorkspaceIntegrationsControllerCreateWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerCreateWorkspaceIntegration']>>>
|
|
4082
|
+
export type WorkspaceIntegrationsControllerGetWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerGetWorkspaceIntegration']>>>
|
|
4083
|
+
export type WorkspaceIntegrationsControllerUpdateWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerUpdateWorkspaceIntegration']>>>
|
|
4084
|
+
export type WorkspaceIntegrationsControllerDeleteWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerDeleteWorkspaceIntegration']>>>
|
|
4085
|
+
export type WorkspaceIntegrationsControllerTestWorkspaceIntegrationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerTestWorkspaceIntegration']>>>
|
|
4086
|
+
export type WorkspaceIntegrationsControllerGetWorkspaceWebhooksResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerGetWorkspaceWebhooks']>>>
|
|
4087
|
+
export type WorkspaceIntegrationsControllerCreateWorkspaceWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['workspaceIntegrationsControllerCreateWorkspaceWebhook']>>>
|
|
4088
|
+
export type AblyControllerGetTokenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['ablyControllerGetToken']>>>
|
|
4089
|
+
export type StorageControllerUploadFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['storageControllerUploadFile']>>>
|
|
4090
|
+
export type ShortUrlControllerRedirectResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['shortUrlControllerRedirect']>>>
|
|
5106
4091
|
export type CallsControllerStartCallResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['callsControllerStartCall']>>>
|
|
5107
4092
|
export type CallsControllerUpdateCallResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['callsControllerUpdateCall']>>>
|
|
5108
4093
|
export type CallsControllerInviteToCallResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['callsControllerInviteToCall']>>>
|
|
@@ -5164,6 +4149,9 @@ export type ChannelsControllerGetWorkspaceChannelsResult = NonNullable<Awaited<R
|
|
|
5164
4149
|
export type ChannelsControllerGetChannelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['channelsControllerGetChannel']>>>
|
|
5165
4150
|
export type ChannelsControllerUpdateChannelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['channelsControllerUpdateChannel']>>>
|
|
5166
4151
|
export type ChannelsControllerDeleteChannelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['channelsControllerDeleteChannel']>>>
|
|
4152
|
+
export type ChannelsControllerGetChannelMembersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['channelsControllerGetChannelMembers']>>>
|
|
4153
|
+
export type ChannelsControllerAddChannelMembersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['channelsControllerAddChannelMembers']>>>
|
|
4154
|
+
export type ChannelsControllerRemoveChannelMemberResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['channelsControllerRemoveChannelMember']>>>
|
|
5167
4155
|
export type DepartmentsControllerGetDepartmentsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['departmentsControllerGetDepartments']>>>
|
|
5168
4156
|
export type DepartmentsControllerCreateDepartmentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['departmentsControllerCreateDepartment']>>>
|
|
5169
4157
|
export type DepartmentsControllerGetDepartmentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSkyrmeChatAPI>['departmentsControllerGetDepartment']>>>
|