Skip to content

Commit

Permalink
Generate web api responses
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 2, 2024
1 parent c0c80ff commit d2ff911
Show file tree
Hide file tree
Showing 46 changed files with 3,868 additions and 2,664 deletions.
2 changes: 2 additions & 0 deletions src/client/generated-response/AppsManifestCreateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export type AppsManifestCreateResponse = SlackAPIResponse & {
ok: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
team_domain?: string;
team_id?: string;
};

export interface Credentials {
Expand Down
56 changes: 48 additions & 8 deletions src/client/generated-response/ChatPostMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export interface Accessory {
default_to_current_conversation?: boolean;
elements?: AccessoryElement[];
fallback?: string;
filter?: Filter;
filter?: AccessoryFilter;
focus_on_load?: boolean;
image_bytes?: number;
image_height?: number;
Expand Down Expand Up @@ -136,7 +136,7 @@ export interface Accessory {
style?: string;
text?: DescriptionElement;
timezone?: string;
type?: string;
type?: AccessoryType;
url?: string;
value?: string;
workflow?: Workflow;
Expand Down Expand Up @@ -168,7 +168,7 @@ export interface AccessoryElement {
indent?: number;
offset?: number;
style?: string;
type?: FluffyType;
type?: AccessoryType;
}

export interface PurpleElement {
Expand Down Expand Up @@ -214,14 +214,33 @@ export enum PurpleType {
Usergroup = "usergroup",
}

export enum FluffyType {
export enum AccessoryType {
Button = "button",
ChannelsSelect = "channels_select",
Checkboxes = "checkboxes",
ConversationsSelect = "conversations_select",
Datepicker = "datepicker",
Datetimepicker = "datetimepicker",
ExternalSelect = "external_select",
Image = "image",
MultiChannelsSelect = "multi_channels_select",
MultiConversationsSelect = "multi_conversations_select",
MultiExternalSelect = "multi_external_select",
MultiStaticSelect = "multi_static_select",
MultiUsersSelect = "multi_users_select",
Overflow = "overflow",
RadioButtons = "radio_buttons",
RichTextList = "rich_text_list",
RichTextPreformatted = "rich_text_preformatted",
RichTextQuote = "rich_text_quote",
RichTextSection = "rich_text_section",
StaticSelect = "static_select",
Timepicker = "timepicker",
UsersSelect = "users_select",
WorkflowButton = "workflow_button",
}

export interface Filter {
export interface AccessoryFilter {
exclude_bot_users?: boolean;
exclude_external_shared_channels?: boolean;
include?: any[];
Expand Down Expand Up @@ -360,6 +379,7 @@ export interface FileElement {
lines?: number;
lines_more?: number;
linked_channel_id?: string;
list_csv_download_url?: string;
list_limits?: ListLimits;
list_metadata?: ListMetadata;
media_display_type?: string;
Expand Down Expand Up @@ -452,7 +472,7 @@ export interface FileElement {
thumb_video_w?: number;
timestamp?: number;
title?: string;
title_blocks?: FileBlock[];
title_blocks?: DescriptionBlockElement[];
to?: Cc[];
transcription?: Transcription;
update_notification?: number;
Expand All @@ -466,7 +486,7 @@ export interface FileElement {
vtt?: string;
}

export interface FileBlock {
export interface DescriptionBlockElement {
accessory?: Accessory;
alt_text?: string;
app_collaborators?: string[];
Expand Down Expand Up @@ -553,6 +573,7 @@ export interface InitialComment {
export interface ListLimits {
column_count?: number;
column_count_limit?: number;
max_attachments_per_cell?: number;
over_column_maximum?: boolean;
over_row_maximum?: boolean;
over_view_maximum?: boolean;
Expand All @@ -565,6 +586,7 @@ export interface ListLimits {
export interface ListMetadata {
creation_source?: CreationSource;
description?: string;
description_blocks?: DescriptionBlockElement[];
icon?: string;
icon_team_id?: string;
icon_url?: string;
Expand Down Expand Up @@ -631,11 +653,15 @@ export interface View {
columns?: Column[];
created_by?: string;
date_created?: number;
default_view_key?: string;
filters?: FilterElement[];
grouping?: Grouping;
id?: string;
is_all_items_view?: boolean;
is_locked?: boolean;
name?: string;
position?: string;
show_completed_items?: boolean;
stick_column_left?: boolean;
type?: string;
}
Expand All @@ -648,6 +674,19 @@ export interface Column {
width?: number;
}

export interface FilterElement {
column_id?: string;
key?: string;
operator?: string;
typed_values?: any[];
values?: string[];
}

export interface Grouping {
group_by?: string;
group_by_column_id?: string;
}

export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
Expand Down Expand Up @@ -781,7 +820,7 @@ export interface Action {
selected_options?: SelectedOptionElement[];
style?: string;
text?: string;
type?: string;
type?: AccessoryType;
url?: string;
value?: string;
}
Expand Down Expand Up @@ -1049,6 +1088,7 @@ export interface MessageFile {
lines?: number;
lines_more?: number;
linked_channel_id?: string;
list_csv_download_url?: string;
list_limits?: ListLimits;
list_metadata?: ListMetadata;
media_display_type?: string;
Expand Down
28 changes: 24 additions & 4 deletions src/client/generated-response/ChatScheduleMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface Accessory {
default_to_current_conversation?: boolean;
elements?: AccessoryElement[];
fallback?: string;
filter?: Filter;
filter?: AccessoryFilter;
focus_on_load?: boolean;
image_bytes?: number;
image_height?: number;
Expand Down Expand Up @@ -212,7 +212,7 @@ export enum FluffyType {
RichTextSection = "rich_text_section",
}

export interface Filter {
export interface AccessoryFilter {
exclude_bot_users?: boolean;
exclude_external_shared_channels?: boolean;
include?: any[];
Expand Down Expand Up @@ -351,6 +351,7 @@ export interface File {
lines?: number;
lines_more?: number;
linked_channel_id?: string;
list_csv_download_url?: string;
list_limits?: ListLimits;
list_metadata?: ListMetadata;
media_display_type?: string;
Expand Down Expand Up @@ -443,7 +444,7 @@ export interface File {
thumb_video_w?: number;
timestamp?: number;
title?: string;
title_blocks?: FileBlock[];
title_blocks?: DescriptionBlockElement[];
to?: Cc[];
transcription?: Transcription;
update_notification?: number;
Expand All @@ -457,7 +458,7 @@ export interface File {
vtt?: string;
}

export interface FileBlock {
export interface DescriptionBlockElement {
accessory?: Accessory;
alt_text?: string;
app_collaborators?: string[];
Expand Down Expand Up @@ -544,6 +545,7 @@ export interface InitialComment {
export interface ListLimits {
column_count?: number;
column_count_limit?: number;
max_attachments_per_cell?: number;
over_column_maximum?: boolean;
over_row_maximum?: boolean;
over_view_maximum?: boolean;
Expand All @@ -556,6 +558,7 @@ export interface ListLimits {
export interface ListMetadata {
creation_source?: CreationSource;
description?: string;
description_blocks?: DescriptionBlockElement[];
icon?: string;
icon_team_id?: string;
icon_url?: string;
Expand Down Expand Up @@ -622,11 +625,15 @@ export interface View {
columns?: Column[];
created_by?: string;
date_created?: number;
default_view_key?: string;
filters?: FilterElement[];
grouping?: Grouping;
id?: string;
is_all_items_view?: boolean;
is_locked?: boolean;
name?: string;
position?: string;
show_completed_items?: boolean;
stick_column_left?: boolean;
type?: string;
}
Expand All @@ -639,6 +646,19 @@ export interface Column {
width?: number;
}

export interface FilterElement {
column_id?: string;
key?: string;
operator?: string;
typed_values?: any[];
values?: string[];
}

export interface Grouping {
group_by?: string;
group_by_column_id?: string;
}

export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
Expand Down
28 changes: 24 additions & 4 deletions src/client/generated-response/ChatUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export interface Accessory {
default_to_current_conversation?: boolean;
elements?: AccessoryElement[];
fallback?: string;
filter?: Filter;
filter?: AccessoryFilter;
focus_on_load?: boolean;
image_bytes?: number;
image_height?: number;
Expand Down Expand Up @@ -217,7 +217,7 @@ export enum FluffyType {
RichTextSection = "rich_text_section",
}

export interface Filter {
export interface AccessoryFilter {
exclude_bot_users?: boolean;
exclude_external_shared_channels?: boolean;
include?: any[];
Expand Down Expand Up @@ -356,6 +356,7 @@ export interface File {
lines?: number;
lines_more?: number;
linked_channel_id?: string;
list_csv_download_url?: string;
list_limits?: ListLimits;
list_metadata?: ListMetadata;
media_display_type?: string;
Expand Down Expand Up @@ -448,7 +449,7 @@ export interface File {
thumb_video_w?: number;
timestamp?: number;
title?: string;
title_blocks?: FileBlock[];
title_blocks?: DescriptionBlockElement[];
to?: Cc[];
transcription?: Transcription;
update_notification?: number;
Expand All @@ -462,7 +463,7 @@ export interface File {
vtt?: string;
}

export interface FileBlock {
export interface DescriptionBlockElement {
accessory?: Accessory;
alt_text?: string;
app_collaborators?: string[];
Expand Down Expand Up @@ -549,6 +550,7 @@ export interface InitialComment {
export interface ListLimits {
column_count?: number;
column_count_limit?: number;
max_attachments_per_cell?: number;
over_column_maximum?: boolean;
over_row_maximum?: boolean;
over_view_maximum?: boolean;
Expand All @@ -561,6 +563,7 @@ export interface ListLimits {
export interface ListMetadata {
creation_source?: CreationSource;
description?: string;
description_blocks?: DescriptionBlockElement[];
icon?: string;
icon_team_id?: string;
icon_url?: string;
Expand Down Expand Up @@ -627,11 +630,15 @@ export interface View {
columns?: Column[];
created_by?: string;
date_created?: number;
default_view_key?: string;
filters?: FilterElement[];
grouping?: Grouping;
id?: string;
is_all_items_view?: boolean;
is_locked?: boolean;
name?: string;
position?: string;
show_completed_items?: boolean;
stick_column_left?: boolean;
type?: string;
}
Expand All @@ -644,6 +651,19 @@ export interface Column {
width?: number;
}

export interface FilterElement {
column_id?: string;
key?: string;
operator?: string;
typed_values?: any[];
values?: string[];
}

export interface Grouping {
group_by?: string;
group_by_column_id?: string;
}

export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
Expand Down
Loading

0 comments on commit d2ff911

Please sign in to comment.