Skip to content

Commit

Permalink
feat(web-api): run response generation script (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil Maj authored Jun 18, 2024
1 parent 042fec0 commit f3acb2f
Show file tree
Hide file tree
Showing 37 changed files with 3,718 additions and 499 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export interface Config {

export interface TripInformation {
channel_id?: string;
list_id?: string;
message_ts?: string;
reaction?: string;
user_id?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface Conversation {
is_pending_ext_shared?: boolean;
is_private?: boolean;
last_activity_ts?: number;
lists?: Canvas;
member_count?: number;
name?: string;
pending_connected_team_ids?: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type AdminInviteRequestsApprovedListResponse = WebAPICallResult & {
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface ApprovedRequest {
Expand Down Expand Up @@ -52,3 +53,7 @@ export interface InviteRequest {
invite_type?: string;
requester_ids?: string[];
}

export interface ResponseMetadata {
next_cursor?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

import { WebAPICallResult } from '../../WebClient';
export type AdminInviteRequestsDeniedListResponse = WebAPICallResult & {
denied_requests?: DeniedRequest[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
denied_requests?: DeniedRequest[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface DeniedRequest {
Expand All @@ -36,3 +37,7 @@ export interface InviteRequest {
request_reason?: string;
requester_ids?: string[];
}

export interface ResponseMetadata {
next_cursor?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

import { WebAPICallResult } from '../../WebClient';
export type AdminInviteRequestsListResponse = WebAPICallResult & {
error?: string;
invite_requests?: InviteRequest[];
needed?: string;
ok?: boolean;
provided?: string;
error?: string;
invite_requests?: InviteRequest[];
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface InviteRequest {
Expand All @@ -27,3 +28,7 @@ export interface InviteRequest {
request_reason?: string;
requester_ids?: string[];
}

export interface ResponseMetadata {
next_cursor?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ export interface Channel {
}

export interface Properties {
posting_restricted_to?: PostingRestrictedTo;
posting_restricted_to?: RestrictedTo;
threads_restricted_to?: RestrictedTo;
}

export interface PostingRestrictedTo {
export interface RestrictedTo {
type?: string[];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export type CanvasesAccessDeleteResponse = WebAPICallResult & {
error?: string;
failed_to_update_channel_ids?: string[];
failed_to_update_user_ids?: string[];
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export type CanvasesAccessSetResponse = WebAPICallResult & {
error?: string;
failed_to_update_channel_ids?: string[];
failed_to_update_user_ids?: string[];
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/types/response/CanvasesCreateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export type CanvasesCreateResponse = WebAPICallResult & {
canvas_id?: string;
detail?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

Expand Down
2 changes: 2 additions & 0 deletions packages/web-api/src/types/response/CanvasesDeleteResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import { WebAPICallResult } from '../../WebClient';
export type CanvasesDeleteResponse = WebAPICallResult & {
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

Expand Down
3 changes: 3 additions & 0 deletions packages/web-api/src/types/response/CanvasesEditResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ import { WebAPICallResult } from '../../WebClient';
export type CanvasesEditResponse = WebAPICallResult & {
detail?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};

export interface ResponseMetadata {
messages?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
import { WebAPICallResult } from '../../WebClient';
export type CanvasesSectionsLookupResponse = WebAPICallResult & {
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
sections?: Section[];
};

export interface ResponseMetadata {
messages?: string[];
}

export interface Section {
Expand Down
Loading

0 comments on commit f3acb2f

Please sign in to comment.