Skip to content

Commit

Permalink
Generate the latest web api responses
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Oct 3, 2023
1 parent 48f560d commit b7bad09
Show file tree
Hide file tree
Showing 30 changed files with 4,023 additions and 2,528 deletions.
37 changes: 30 additions & 7 deletions packages/web-api/src/response/AdminConversationsSearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,23 @@

import { WebAPICallResult } from '../WebClient';
export type AdminConversationsSearchResponse = WebAPICallResult & {
conversations?: Conversation[];
error?: string;
needed?: string;
next_cursor?: string;
ok?: boolean;
provided?: string;
conversations?: Conversation[];
error?: string;
needed?: string;
next_cursor?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
total_count?: number;
};

export interface Conversation {
canvas?: Canvas;
channel_email_addresses?: string[];
channel_email_addresses?: ChannelEmailAddress[];
channel_manager_count?: number;
connected_limited_team_ids?: string[];
connected_team_ids?: string[];
context_team_id?: string;
conversation_host_id?: string;
created?: number;
creator_id?: string;
Expand Down Expand Up @@ -59,3 +62,23 @@ export interface OwnershipDetail {
count?: number;
team_id?: string;
}

export interface ChannelEmailAddress {
address?: string;
conversation_id?: string;
date_created?: number;
icons?: Icons;
name?: string;
team_id?: string;
user_id?: string;
}

export interface Icons {
image_36?: string;
image_48?: string;
image_72?: string;
}

export interface ResponseMetadata {
messages?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export type AdminWorkflowsSearchResponse = WebAPICallResult & {
};

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

export interface Workflow {
Expand Down
Loading

0 comments on commit b7bad09

Please sign in to comment.