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 Oct 29, 2024
1 parent 4645403 commit 1f9c020
Show file tree
Hide file tree
Showing 46 changed files with 526 additions and 178 deletions.
326 changes: 183 additions & 143 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"homepage": "https://github.com/seratch/slack-web-api-client#readme",
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@vitest/coverage-v8": "^2.1.3",
"msw": "^2.5.1",
"@vitest/coverage-v8": "^2.1.4",
"msw": "^2.5.2",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
"vitest": "^2.1.4"
},
"overrides": {
"msw": {
Expand Down
11 changes: 9 additions & 2 deletions src/client/generated-response/ChatPostMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -689,9 +690,15 @@ export interface Private {

export interface Transcription {
locale?: string;
preview?: TranscriptionPreview;
status?: string;
}

export interface TranscriptionPreview {
content?: string;
has_more?: boolean;
}

export interface Attachment {
actions?: Action[];
app_id?: string;
Expand Down Expand Up @@ -743,7 +750,7 @@ export interface Attachment {
msg_subtype?: string;
original_url?: string;
pretext?: string;
preview?: Preview;
preview?: AttachmentPreview;
service_icon?: string;
service_name?: string;
service_url?: string;
Expand Down Expand Up @@ -1263,7 +1270,7 @@ export interface AttachmentMetadata {
thumb_tiny?: string;
}

export interface Preview {
export interface AttachmentPreview {
can_remove?: boolean;
icon_url?: string;
subtitle?: DescriptionElement;
Expand Down
7 changes: 7 additions & 0 deletions src/client/generated-response/ChatScheduleMessageResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -680,9 +681,15 @@ export interface Private {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}

export interface BotProfile {
app_id?: string;
deleted?: boolean;
Expand Down
7 changes: 7 additions & 0 deletions src/client/generated-response/ChatUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -685,9 +686,15 @@ export interface Private {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}

export interface BotProfile {
app_id?: string;
deleted?: boolean;
Expand Down
11 changes: 9 additions & 2 deletions src/client/generated-response/ConversationsHistoryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -705,9 +706,15 @@ export interface Private {

export interface Transcription {
locale?: string;
preview?: TranscriptionPreview;
status?: string;
}

export interface TranscriptionPreview {
content?: string;
has_more?: boolean;
}

export interface Attachment {
actions?: Action[];
app_id?: string;
Expand Down Expand Up @@ -759,7 +766,7 @@ export interface Attachment {
msg_subtype?: string;
original_url?: string;
pretext?: string;
preview?: Preview;
preview?: AttachmentPreview;
service_icon?: string;
service_name?: string;
service_url?: string;
Expand Down Expand Up @@ -1276,7 +1283,7 @@ export interface AttachmentMetadata {
thumb_tiny?: string;
}

export interface Preview {
export interface AttachmentPreview {
can_remove?: boolean;
icon_url?: string;
subtitle?: DescriptionElement;
Expand Down
7 changes: 7 additions & 0 deletions src/client/generated-response/ConversationsOpenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -696,9 +697,15 @@ export interface Private {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}

export interface BotProfile {
app_id?: string;
deleted?: boolean;
Expand Down
11 changes: 9 additions & 2 deletions src/client/generated-response/ConversationsRepliesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -694,9 +695,15 @@ export interface Private {

export interface Transcription {
locale?: string;
preview?: TranscriptionPreview;
status?: string;
}

export interface TranscriptionPreview {
content?: string;
has_more?: boolean;
}

export interface Attachment {
actions?: Action[];
app_id?: string;
Expand Down Expand Up @@ -748,7 +755,7 @@ export interface Attachment {
msg_subtype?: string;
original_url?: string;
pretext?: string;
preview?: Preview;
preview?: AttachmentPreview;
service_icon?: string;
service_name?: string;
service_url?: string;
Expand Down Expand Up @@ -1265,7 +1272,7 @@ export interface AttachmentMetadata {
thumb_tiny?: string;
}

export interface Preview {
export interface AttachmentPreview {
can_remove?: boolean;
icon_url?: string;
subtitle?: DescriptionElement;
Expand Down
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -543,9 +544,15 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}

export interface Paging {
count?: number;
page?: number;
Expand Down
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -537,9 +538,15 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}

export interface Paging {
count?: number;
page?: number;
Expand Down
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesRemoteAddResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -536,5 +537,11 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesRemoteInfoResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -536,5 +537,11 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesRemoteListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -537,9 +538,15 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}

export interface ResponseMetadata {
next_cursor?: string;
}
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesRemoteShareResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -536,5 +537,11 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesRemoteUpdateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -536,5 +537,11 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}
7 changes: 7 additions & 0 deletions src/client/generated-response/FilesRevokePublicURLResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export interface Column {
export interface MediaProgress {
duration_ms?: number;
max_offset_ms?: number;
media_watched?: boolean;
offset_ms?: number;
}

Expand Down Expand Up @@ -536,5 +537,11 @@ export interface CustomizableInputParameter {

export interface Transcription {
locale?: string;
preview?: Preview;
status?: string;
}

export interface Preview {
content?: string;
has_more?: boolean;
}
Loading

0 comments on commit 1f9c020

Please sign in to comment.