guildedapi-types.ts
Version:
Up to date Guilded API Typings. Contribution is welcome.
105 lines (94 loc) • 4.15 kB
text/typescript
// import { APIMentions } from "./Chat";
import type * as OpenAPI from "../../schemas/v1"
// export interface APICalendarEvent {
// /** The ID of the calendar event (min 1) */
// id: number,
// /** The ID of the server */
// serverId: string,
// /** The ID of the channel */
// channelId: string,
// /** The name of the event (min length 1; max length 60) */
// name: string,
// /** The description of the event (min length 1; max length 8000) */
// description?: string,
// /** The location of the event (min length 1; max length 8000) */
// location?: string,
// /** A URL to associate with the event */
// url?: string,
// /** The color of the event when viewing in the calendar (min 0; max 16777215) */
// color?: number,
// /** Does the event last all day */
// isAllDay?: boolean;
// /** The number of RSVPs to allow before waitlisting RSVPs (min 1) */
// rsvpLimit?: number,
// /** When `rsvpLimit` is set, users from the waitlist will be added as space becomes available in the event */
// autofillWaitlist?: boolean;
// /** The ISO 8601 timestamp that the event starts at */
// startsAt: string,
// /** The duration of the event in minutes (min 1) */
// duration?: number,
//
// isPrivate?: boolean,
// /** Calendar Event's mentions */
// mentions?: APIMentions,
// /** The ISO 8601 timestamp that the event was created at */
// createdAt: string,
// /** The ID of the user who created this event */
// createdBy: string,
//
// cancellation?: {
// /** The description of event cancellation (min length 1; max length 140) */
// description?: string,
// /** The ID of the user who created this event cancellation */
// createdBy: string
// }
// }
export type APICalendarEvent = OpenAPI.components["schemas"]["CalendarEvent"];
export type APICalendarEventRSVPStatuses = OpenAPI.CalendarEventRsvpStatus;
// export interface APICalendarEventRSVP {
// /** The ID of the calendar event (min 1) */
// calendarEventId: number,
// /** The ID of the channel */
// channelId: string,
// /** The ID of the server */
// serverId: string,
// /** The ID of the user */
// userId: string,
// /** The status of the RSVP */
// status: APICalendarEventRSVPStatuses,
// /** The ID of the user who created this RSVP */
// createdBy: string,
// /** The ISO 8601 timestamp that the RSVP was created at */
// createdAt: string,
// /** The ID of the user who updated this RSVP */
// updatedBy?: string,
// /** The ISO 8601 timestamp that the RSVP was updated at, if relevant */
// updatedAt?: string
// }
export type APICalendarEventRSVP = OpenAPI.components["schemas"]["CalendarEventRsvp"];
// export interface APICalendarEventComment {
// /** The ID of the calendar event comment (min 1) */
// id: number;
// /** The content of the calendar event comment (min length 1; max length 10000) */
// content: string;
// /** The ISO 8601 timestamp that the calendar event comment was created at */
// createdAt: string;
// /** The ISO 8601 timestamp that the calendar event comment was updated at, if relevant */
// updatedAt?: string;
// /** The ID of the calendar event (min 1) */
// calendarEventId: number;
// /** The ID of the channel */
// channelId: string;
// /** The ID of the user who created this calendar event comment (Note: If this event has createdByWebhookId present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA) */
// createdBy: string;
// }
export type APICalendarEventComment = OpenAPI.components["schemas"]["CalendarEventComment"];
// export interface APICalendarEventSeries {
// /** The ID of the calendar event series */
// id: string;
// /** The ID of the server */
// serverId: string;
// /** The ID of the channel */
// channelId: string;
// }
export type APICalendarEventSeries = OpenAPI.components["schemas"]["CalendarEventSeries"];