Skip to content

Commit

Permalink
chore: build library from latest spec [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
revolt-ci committed Jun 29, 2024
1 parent 7d75da5 commit 1c13904
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
35 changes: 31 additions & 4 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,9 @@ export interface components {
/** @description Username and discriminator combo separated by # */
username: string;
};
/** @description Bot */
Bot: {
/** @description Bot with user response */
BotWithUserResponse: {
user: components["schemas"]["User"];
/** @description Bot Id */
_id: string;
/** @description User Id of the bot owner */
Expand Down Expand Up @@ -1127,6 +1128,32 @@ export interface components {
/** @description User object */
user: components["schemas"]["User"];
};
/** @description Bot */
Bot: {
/** @description Bot Id */
_id: string;
/** @description User Id of the bot owner */
owner: string;
/** @description Token used to authenticate requests for this bot */
token: string;
/** @description Whether the bot is public (may be invited by anyone) */
public: boolean;
/** @description Whether to enable analytics */
analytics?: boolean;
/** @description Whether this bot should be publicly discoverable */
discoverable?: boolean;
/** @description Reserved; URL for handling interactions */
interactions_url?: string;
/** @description URL for terms of service */
terms_of_service_url?: string;
/** @description URL for privacy policy */
privacy_policy_url?: string;
/**
* Format: uint32
* @description Enum of bot flags
*/
flags?: number;
};
/**
* @description Owned Bots Response
*
Expand Down Expand Up @@ -2861,7 +2888,7 @@ export interface operations {
responses: {
200: {
content: {
"application/json": components["schemas"]["Bot"];
"application/json": components["schemas"]["BotWithUserResponse"];
};
};
/** An error occurred. */
Expand Down Expand Up @@ -2986,7 +3013,7 @@ export interface operations {
responses: {
200: {
content: {
"application/json": components["schemas"]["Bot"];
"application/json": components["schemas"]["BotWithUserResponse"];
};
};
/** An error occurred. */
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ export type Channel = components['schemas']['Channel'];
export type OverrideField = components['schemas']['OverrideField'];
export type MutualResponse = components['schemas']['MutualResponse'];
export type DataSendFriendRequest = components['schemas']['DataSendFriendRequest'];
export type Bot = components['schemas']['Bot'];
export type BotWithUserResponse = components['schemas']['BotWithUserResponse'];
export type DataCreateBot = components['schemas']['DataCreateBot'];
export type InviteBotDestination = components['schemas']['InviteBotDestination'];
export type PublicBot = components['schemas']['PublicBot'];
export type FetchBotResponse = components['schemas']['FetchBotResponse'];
export type Bot = components['schemas']['Bot'];
export type OwnedBotsResponse = components['schemas']['OwnedBotsResponse'];
export type DataEditBot = components['schemas']['DataEditBot'];
export type FieldsBot = components['schemas']['FieldsBot'];
Expand Down

0 comments on commit 1c13904

Please sign in to comment.