Skip to content

Commit

Permalink
fix: manually fix chat open api models
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Jun 28, 2024
1 parent 7deff54 commit 87f8672
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/gen/chat/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1977,6 +1977,7 @@ export interface ChannelGetOrCreateRequest {
* @interface ChannelInput
*/
export interface ChannelInput {
[key: string]: any;
/**
* Enable or disable auto translation
* @type {boolean}
Expand Down Expand Up @@ -2036,7 +2037,7 @@ export interface ChannelInput {
* @type {Array<ChannelMember>}
* @memberof ChannelInput
*/
members?: Array<ChannelMember>;
members?: Array<Partial<ChannelMember>>;
/**
* Team the channel belongs to (if multi-tenant mode is enabled)
* @type {string}
Expand Down Expand Up @@ -2190,6 +2191,7 @@ export interface ChannelMute {
* @interface ChannelResponse
*/
export interface ChannelResponse {
[key: string]: any;
/**
* Whether auto translation is enabled or not
* @type {boolean}
Expand Down Expand Up @@ -2297,7 +2299,7 @@ export interface ChannelResponse {
* @type {Array<ChannelMember>}
* @memberof ChannelResponse
*/
members?: Array<ChannelMember>;
members?: Array<Partial<ChannelMember>>;
/**
* Date of mute expiration
* @type {string}
Expand Down Expand Up @@ -12978,7 +12980,7 @@ export interface UpdateChannelRequest {
* @type {Array<ChannelMember>}
* @memberof UpdateChannelRequest
*/
add_members?: Array<ChannelMember>;
add_members?: Array<Partial<ChannelMember>>;
/**
* List of user IDs to make channel moderators
* @type {Array<string>}
Expand All @@ -12990,7 +12992,7 @@ export interface UpdateChannelRequest {
* @type {Array<ChannelMember>}
* @memberof UpdateChannelRequest
*/
assign_roles?: Array<ChannelMember>;
assign_roles?: Array<Partial<ChannelMember>>;
/**
* Sets cool down period for the channel in seconds
* @type {number}
Expand Down Expand Up @@ -13020,7 +13022,7 @@ export interface UpdateChannelRequest {
* @type {Array<ChannelMember>}
* @memberof UpdateChannelRequest
*/
invites?: Array<ChannelMember>;
invites?: Array<Partial<ChannelMember>>;
/**
*
* @type {MessageRequest}
Expand Down Expand Up @@ -14152,7 +14154,7 @@ export interface UserObject {
* @type {boolean}
* @memberof UserObject
*/
banned: boolean;
banned?: boolean;
/**
* Date/time of creation
* @type {string}
Expand All @@ -14164,7 +14166,7 @@ export interface UserObject {
* @type {{ [key: string]: any; }}
* @memberof UserObject
*/
custom: { [key: string]: any; };
custom?: { [key: string]: any; };
/**
* Date of deactivation
* @type {string}
Expand Down Expand Up @@ -14206,7 +14208,7 @@ export interface UserObject {
* @type {boolean}
* @memberof UserObject
*/
readonly online: boolean;
readonly online?: boolean;
/**
*
* @type {PrivacySettings}
Expand All @@ -14230,7 +14232,7 @@ export interface UserObject {
* @type {string}
* @memberof UserObject
*/
role: string;
role?: string;
/**
* List of teams user is a part of
* @type {Array<string>}
Expand Down

0 comments on commit 87f8672

Please sign in to comment.