@beepbox.net/gofetch-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -0
- package/dist/index.js +13 -0
- package/package.json +31 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Treaty } from '@elysiajs/eden'
|
|
2
|
+
|
|
3
|
+
declare enum SourceType { YOUTUBE = 'YouTube', YT_MUSIC = 'YouTube Music', SOUND_CLOUD = 'SoundCloud', SPOTIFY = 'Spotify', APPLE_MUSIC = 'Apple Music', FILE_GARDEN = 'File Garden', NEWGROUNDS = 'Newgrounds', BANDCAMP = 'Bandcamp', OTHER = 'Other' }
|
|
4
|
+
|
|
5
|
+
declare enum FieldType { TEXT = 'string', INT = 'integer', FLOAT = 'float', URL = 'url', USER = 'user', BEEP = 'beep', CHOICE = 'choice', DATE = 'date', BOOLEAN = 'boolean' }
|
|
6
|
+
|
|
7
|
+
declare enum ScoreComponentType { NUMBER = 'number', ENUM = 'enum' }
|
|
8
|
+
|
|
9
|
+
export type GofetchClient = { "favicon.ico": { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: ({ error: { id: (1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 3000 | 3001 | 3002 | 3003 | 3004 | 3005 | 3006 | 3007 | 3008 | 3009 | 4000 | 4001 | 4003 | 4004 | 4005 | 4006 | 4007 | 4008 | 4009 | 4010 | 4011 | 4012 | 5000 | 5001 | 5002 | 5003 | 5004 | 5005 | 5006 | 5007 | 5008 | 6001 | 6002 | 7000 | 7001 | 7002 | 7003 | 7004 | 7100 | 8000 | 8100 | 8101 | 8102 | 9000); code: ("UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "BAD_REQUEST" | "INTERNAL" | "SERVICE_UNAVAILABLE" | "TIMEOUT" | "CONFLICT" | "GONE" | "OAUTH_ERROR" | "INVALID_DATA"); message: string; field?: string | undefined; details?: unknown; }; }) | Bun.BunFile; }>>) & { '~path': string; }; } & { '~path': string; }; health: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: ({ error: { id: (1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 3000 | 3001 | 3002 | 3003 | 3004 | 3005 | 3006 | 3007 | 3008 | 3009 | 4000 | 4001 | 4003 | 4004 | 4005 | 4006 | 4007 | 4008 | 4009 | 4010 | 4011 | 4012 | 5000 | 5001 | 5002 | 5003 | 5004 | 5005 | 5006 | 5007 | 5008 | 6001 | 6002 | 7000 | 7001 | 7002 | 7003 | 7004 | 7100 | 8000 | 8100 | 8101 | 8102 | 9000); code: ("UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "BAD_REQUEST" | "INTERNAL" | "SERVICE_UNAVAILABLE" | "TIMEOUT" | "CONFLICT" | "GONE" | "OAUTH_ERROR" | "INVALID_DATA"); message: string; field?: string | undefined; details?: unknown; }; }) | { ok: boolean; }; }>>) & { '~path': string; }; } & { '~path': string; }; docs: { responses: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: string | ({ error: { id: (1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 3000 | 3001 | 3002 | 3003 | 3004 | 3005 | 3006 | 3007 | 3008 | 3009 | 4000 | 4001 | 4003 | 4004 | 4005 | 4006 | 4007 | 4008 | 4009 | 4010 | 4011 | 4012 | 5000 | 5001 | 5002 | 5003 | 5004 | 5005 | 5006 | 5007 | 5008 | 6001 | 6002 | 7000 | 7001 | 7002 | 7003 | 7004 | 7100 | 8000 | 8100 | 8101 | 8102 | 9000); code: ("UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "BAD_REQUEST" | "INTERNAL" | "SERVICE_UNAVAILABLE" | "TIMEOUT" | "CONFLICT" | "GONE" | "OAUTH_ERROR" | "INVALID_DATA"); message: string; field?: string | undefined; details?: unknown; }; }); }>>) & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; v0: { auth: { discord: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: Response; }>>) & { '~path': string; }; callback: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; beeps: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; authors: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }[]; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; authors: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }[]; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }[]; }>>) & { '~path': string; }; post: ((body: { title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; basedOn?: string | undefined; madeIn?: string | undefined; sources?: string[] | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; user: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & { me: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; }>>) & { '~path': string; }; patch: ((body?: { displayName?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; v1: { user: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { displayName?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; role: { post: ((body?: { role?: (Role) | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; disable: { post: ((body?: { disabled?: boolean | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { displayName?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; role: { post: ((body?: { role?: (Role) | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; disable: { post: ((body?: { disabled?: boolean | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; }) & { me: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; avatar: string | null; displayName: string; role: (Role); disabled: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { displayName?: string | undefined; role?: (Role) | undefined; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; disabled?: boolean | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; beep: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; isGuided: boolean; songType: (SongType); state: (BeepState); albumArt?: string | undefined; url?: string | undefined; shortUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; forks: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: (string | { id: string; title: string; description: string; isGuided: boolean; songType: (SongType); state: (BeepState); albumArt?: string | undefined; url?: string | undefined; shortUrl?: string | undefined; })[]; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; original: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: string | { id: string; title: string; description: string; isGuided: boolean; songType: (SongType); state: (BeepState); albumArt?: string | undefined; url?: string | undefined; shortUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; authors: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body?: { title?: string | undefined; description?: string | undefined; url?: string | undefined; isGuided?: boolean | undefined; songType?: (SongType) | undefined; state?: (BeepState) | undefined; shortUrl?: string | undefined; albumArt?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; isGuided: boolean; songType: (SongType); state: (BeepState); albumArt?: string | undefined; url?: string | undefined; shortUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; forks: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: (string | { id: string; title: string; description: string; isGuided: boolean; songType: (SongType); state: (BeepState); albumArt?: string | undefined; url?: string | undefined; shortUrl?: string | undefined; })[]; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; original: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: string | { id: string; title: string; description: string; isGuided: boolean; songType: (SongType); state: (BeepState); albumArt?: string | undefined; url?: string | undefined; shortUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; authors: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body?: { title?: string | undefined; description?: string | undefined; url?: string | undefined; isGuided?: boolean | undefined; songType?: (SongType) | undefined; state?: (BeepState) | undefined; shortUrl?: string | undefined; albumArt?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { songType?: (SongType) | undefined; state?: (BeepState) | undefined; userId?: string | undefined; platformId?: string | undefined; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; isGuided?: boolean | undefined; expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; basedOn?: string | undefined; madeIn?: string | undefined; sources?: string[] | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; platform: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (PlatformExpandOption) | (PlatformExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; logo?: string | undefined; wikiUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; beeps: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; tree: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; forks: any[]; logo?: string | undefined; wikiUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body?: { name?: string | undefined; description?: string | undefined; url?: string | undefined; alternateVersions?: { url: string; name: string; }[] | undefined; logo?: string | undefined; wikiUrl?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { expand?: (PlatformExpandOption) | (PlatformExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; logo?: string | undefined; wikiUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (PlatformExpandOption) | (PlatformExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; logo?: string | undefined; wikiUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; beeps: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; tree: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; forks: any[]; logo?: string | undefined; wikiUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body?: { name?: string | undefined; description?: string | undefined; url?: string | undefined; alternateVersions?: { url: string; name: string; }[] | undefined; logo?: string | undefined; wikiUrl?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { expand?: (PlatformExpandOption) | (PlatformExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; logo?: string | undefined; wikiUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; expand?: (PlatformExpandOption) | (PlatformExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; logo?: string | undefined; wikiUrl?: string | undefined; forks?: string[] | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; logo?: string | undefined; wikiUrl?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; source: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { id: string; type: SourceType.OTHER; label: string; url: string; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; beeps: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body: { type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { type: SourceType.OTHER; label: string; url: string; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { id: string; type: SourceType.OTHER; label: string; url: string; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { id: string; type: SourceType.OTHER; label: string; url: string; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; beeps: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (BeepExpandOption) | (BeepExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body: { type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { type: SourceType.OTHER; label: string; url: string; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { id: string; type: SourceType.OTHER; label: string; url: string; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & { get: ((options: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query: { type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | { type: SourceType.OTHER; label: string; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; }; }) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { type: SourceType.OTHER; label: string; url: string; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; type: SourceType.YOUTUBE | SourceType.YT_MUSIC | SourceType.SOUND_CLOUD | SourceType.SPOTIFY | SourceType.APPLE_MUSIC | SourceType.FILE_GARDEN | SourceType.NEWGROUNDS | SourceType.BANDCAMP; url: string; } | { id: string; type: SourceType.OTHER; label: string; url: string; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; event: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { expand?: (EventExpandOption) | (EventExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; state: (EventState); config: { allowSelfRegistration: boolean; allowPostStartRegistration: boolean; visibility: (EventVisibility); maxParticipants?: number | undefined; }; startDate?: Date | undefined; endDate?: Date | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; hosts: ((params: { userId: string | number; }) => { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { userIds: string[]; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; participants: ((params: { userId: string | number; }) => { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; '~path': string; } & { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { userIds: string[]; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; join: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; participantId: string; eventId: string; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; leave: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body?: { title?: string | undefined; config?: { allowSelfRegistration: boolean; allowPostStartRegistration: boolean; visibility: (EventVisibility); maxParticipants?: number | undefined; } | undefined; startDate?: Date | undefined; endDate?: Date | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; "open-registration": { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; start: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; close: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; archive: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; weightGroup: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; expand?: (WeightGroupExpandOption) | (WeightGroupExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: ({ name: string; weight: number; isDefault: false; users: string[]; } | { name: string; weight: number; isDefault: true; users?: string[] | undefined; })[] | { name: string; weight: number; isDefault: false; users: string[]; } | { name: string; weight: number; isDefault: true; users?: string[] | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { expand?: (EventExpandOption) | (EventExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; state: (EventState); config: { allowSelfRegistration: boolean; allowPostStartRegistration: boolean; visibility: (EventVisibility); maxParticipants?: number | undefined; }; startDate?: Date | undefined; endDate?: Date | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; hosts: ((params: { userId: string | number; }) => { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { userIds: string[]; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; participants: ((params: { userId: string | number; }) => { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; '~path': string; } & { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { userIds: string[]; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; join: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; participantId: string; eventId: string; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; leave: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; patch: ((body?: { title?: string | undefined; config?: { allowSelfRegistration: boolean; allowPostStartRegistration: boolean; visibility: (EventVisibility); maxParticipants?: number | undefined; } | undefined; startDate?: Date | undefined; endDate?: Date | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; "open-registration": { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; start: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; close: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; archive: { post: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; weightGroup: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; expand?: (WeightGroupExpandOption) | (WeightGroupExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: ({ name: string; weight: number; isDefault: false; users: string[]; } | { name: string; weight: number; isDefault: true; users?: string[] | undefined; })[] | { name: string; weight: number; isDefault: false; users: string[]; } | { name: string; weight: number; isDefault: true; users?: string[] | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; } & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { state?: (EventState) | (EventState)[] | undefined; hostId?: string | undefined; startAfter?: string | Date | undefined; startBefore?: string | Date | undefined; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; expand?: (EventExpandOption) | (EventExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { title: string; startDate?: Date | undefined; endDate?: Date | undefined; hostedBy: string[]; config?: { allowSelfRegistration: boolean; allowPostStartRegistration: boolean; visibility: (EventVisibility); maxParticipants?: number | undefined; } | undefined; state?: (EventState) | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; state: (EventState); config: { allowSelfRegistration: boolean; allowPostStartRegistration: boolean; visibility: (EventVisibility); maxParticipants?: number | undefined; }; startDate?: Date | undefined; endDate?: Date | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; forum: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (ForumExpandOption) | (ForumExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { title?: string | undefined; forumData?: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[] | undefined; submissionFields?: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[] | undefined; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; archive: { post: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; unarchive: { post: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (ForumExpandOption) | (ForumExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { title?: string | undefined; forumData?: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[] | undefined; submissionFields?: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[] | undefined; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; archive: { post: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; unarchive: { post: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & { event: ((params: { eventId: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; archived?: boolean | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; archived?: boolean | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; title: string; forumData: ({ key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; } | { key: string; type: FieldType.TEXT | FieldType.USER | FieldType.BEEP; value: string; } | { key: string; type: FieldType.INT | FieldType.FLOAT; value: number; } | { key: string; type: FieldType.URL; value: string; } | { key: string; type: FieldType.BOOLEAN; value: boolean; } | { key: string; type: FieldType.DATE; value: Date; })[]; submissionFields: ({ key: string; required: boolean; label?: string | undefined; type: FieldType.TEXT; config?: { minLength?: number | undefined; maxLength?: number | undefined; pattern?: string | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.INT | FieldType.FLOAT; config?: { min?: number | undefined; max?: number | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.URL; config?: { allowedDomains?: string[] | undefined; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.USER | FieldType.BEEP | FieldType.BOOLEAN; config?: Map<unknown, unknown> | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.CHOICE; config?: { options: string[]; } | undefined; } | { key: string; required: boolean; label?: string | undefined; type: FieldType.DATE; config?: { min?: Date | undefined; max?: Date | undefined; } | undefined; })[]; archived: boolean; submissionsOpen: boolean; submissionsPublic: boolean; scoresOpen: boolean; scoresPublic: boolean; scoringConfig?: { fields: ({ key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.NUMBER; config: { min: number; max: number; }; } | { key: string; required: boolean; label?: string | undefined; weight: number; noteConfig: (NoteConfig); inputType: ScoreComponentType.ENUM; options: { label: string; value: number; }[]; })[]; overallNoteConfig: (NoteConfig); aggregationMethod: (AggregationMethod); skippedBehavior: (SkippedBehavior); } | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & {} & { '~path': string; }; } & { '~path': string; }; submission: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (SubmissionExpandOption) | (SubmissionExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { fieldValues?: Record<string, string | number | boolean | Date> | undefined; url?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; state: { post: ((body: { state: (SubmissionState); }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; scores: { mine: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; judgeId: string; overallNote?: string | undefined; components: { [x: string]: { value: number; note?: string | undefined; }; }; } | null; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { components: Record<string, number>; overallNote?: string | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: RecordId<string, (string | number | bigint | unknown[] | Record<string, unknown> | Uuid)>; in: RecordId<string, (string | number | bigint | unknown[] | Record<string, unknown> | Uuid)>; out: RecordId<string, (string | number | bigint | unknown[] | Record<string, unknown> | Uuid)>; components: { [x: string]: { value: number; note?: string | undefined; }; }; overallNote?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; "compute-score": { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { dropWorst?: number | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { raw: number; adjusted: number; groups: { id: string; name: string; weight: number; judgeScores: { judge: string; total: number; dropped: boolean; }[]; average?: number | undefined; }[]; adjustments: { id: string; value: number; type: (ScoreAdjustmentType); reason?: string | undefined; }[]; meta: { droppedWorst: number; missingJudges: { name: string; group: string; }[]; }; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; adjustments: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { value: number; type: (ScoreAdjustmentType); reason?: string | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; value: number; type: (ScoreAdjustmentType); reason?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { expand?: (SubmissionExpandOption) | (SubmissionExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { fieldValues?: Record<string, string | number | boolean | Date> | undefined; url?: string | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; state: { post: ((body: { state: (SubmissionState); }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; scores: { mine: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; judgeId: string; overallNote?: string | undefined; components: { [x: string]: { value: number; note?: string | undefined; }; }; } | null; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { components: Record<string, number>; overallNote?: string | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: RecordId<string, (string | number | bigint | unknown[] | Record<string, unknown> | Uuid)>; in: RecordId<string, (string | number | bigint | unknown[] | Record<string, unknown> | Uuid)>; out: RecordId<string, (string | number | bigint | unknown[] | Record<string, unknown> | Uuid)>; components: { [x: string]: { value: number; note?: string | undefined; }; }; overallNote?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; "compute-score": { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { dropWorst?: number | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { raw: number; adjusted: number; groups: { id: string; name: string; weight: number; judgeScores: { judge: string; total: number; dropped: boolean; }[]; average?: number | undefined; }[]; adjustments: { id: string; value: number; type: (ScoreAdjustmentType); reason?: string | undefined; }[]; meta: { droppedWorst: number; missingJudges: { name: string; group: string; }[]; }; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; adjustments: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { value: number; type: (ScoreAdjustmentType); reason?: string | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; value: number; type: (ScoreAdjustmentType); reason?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; }) & { forum: ((params: { forumId: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { userId?: string | undefined; beepId?: string | undefined; forumId?: string | undefined; forumIds?: string[] | undefined; judgeId?: string | undefined; state?: (SubmissionState) | undefined; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; expand?: (SubmissionExpandOption) | (SubmissionExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; beep?: { title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; createdBy: string; basedOn?: string | undefined; madeIn?: string | undefined; sources?: string[] | undefined; } | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { userId?: string | undefined; beepId?: string | undefined; forumId?: string | undefined; forumIds?: string[] | undefined; judgeId?: string | undefined; state?: (SubmissionState) | undefined; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; expand?: (SubmissionExpandOption) | (SubmissionExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; beep?: { title: string; description: string; url: string; isGuided: boolean; songType: (SongType); state: (BeepState); shortUrl?: string | undefined; albumArt?: string | undefined; createdBy: string; basedOn?: string | undefined; madeIn?: string | undefined; sources?: string[] | undefined; } | undefined; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; state: (SubmissionState); fieldValues: { [x: string]: string | number | boolean | Date; }; url?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & {} & { '~path': string; }; adjustments: ((params: { adjustmentId: string | number; }) => { delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { delete: ((body?: unknown, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: Record<string, unknown> | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & {} & { '~path': string; }; beep: ((params: { beepId: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { computeScores?: boolean | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query?: { computeScores?: boolean | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; }) & {} & { '~path': string; }; } & { '~path': string; }; weightGroup: ((params: { id: string | number; }) => { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { expand?: (WeightGroupExpandOption) | (WeightGroupExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; weight: number; isDefault: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { name?: string | undefined; weight?: number | undefined; isDefault?: boolean | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; members: ((params: { userId: string | number; }) => { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; '~path': string; } & { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { userIds: string[]; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; } & { '~path': string; }; '~path': string; } & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { expand?: (WeightGroupExpandOption) | (WeightGroupExpandOption)[] | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; name: string; weight: number; isDefault: boolean; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; patch: ((body?: { name?: string | undefined; weight?: number | undefined; isDefault?: boolean | undefined; } | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: any; }>>) & { '~path': string; }; delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; members: ((params: { userId: string | number; }) => { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; '~path': string; } & { delete: ((body?: {} | undefined, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; post: ((body: { userIds: string[]; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ [x: string]: unknown; }>>) & { '~path': string; }; } & { '~path': string; }; }) & {} & { '~path': string; }; xp: ((params: { id: string | number; }) => { retract: { post: ((body: { reason: string; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; amount: number; source: string; retracted: boolean; reason?: string | undefined; retractedReason?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; '~path': string; } & { retract: { post: ((body: { reason: string; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; amount: number; source: string; retracted: boolean; reason?: string | undefined; retractedReason?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; }) & { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: { source?: string | undefined; sourceType?: "user" | "event" | "submission_forum" | "submission" | undefined; retracted?: boolean | undefined; userId?: string | undefined; amountRange?: { min: number; max: number; } | undefined; limit?: number | undefined; sort?: string | undefined; cursor?: false | { sort: string; value: string | number; id: string; } | undefined; } | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; mine: { get: ((options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { data: unknown[]; nextCursor: string | null; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; grant: { post: ((body: { amount: number; reason?: string | undefined; key: string; toUser: string; fromUser: string; } | { amount: number; reason?: string | undefined; key: string; toUser: string; fromSubmission: string; } | { amount: number; reason?: string | undefined; key: string; toUser: string; fromEvent: string; } | { amount: number; reason?: string | undefined; key: string; toUser: string; fromForum: string; }, options?: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: {} | undefined; query?: {} | undefined; } | undefined) => Promise<Treaty.TreatyResponse<{ 200: { id: string; amount: number; source: string; retracted: boolean; reason?: string | undefined; retractedReason?: string | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; util: { resolve: { platform: { get: ((options: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query: { url: URL; }; }) => Promise<Treaty.TreatyResponse<{ 200: { platform: { id: string; name: string; description: string; url: string; alternateVersions: { url: string; name: string; }[]; logo?: string | undefined; wikiUrl?: string | undefined; forkedBy: string[]; forks: string[]; }; matchedOn: string; matchedName: string; confidence: "prefix" | "exact"; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; short: { get: ((options: { fetch?: RequestInit | undefined; throwHttpError?: boolean | undefined; headers?: Record<string, unknown> | undefined; query: { url: URL; }; }) => Promise<Treaty.TreatyResponse<{ 200: { resolvedUrl: string; modName: string; modId: string; steps?: { url: string; via: "redirect" | "meta-refresh" | "canonical" | "body-link"; status?: number | undefined; }[] | undefined; }; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }>>) & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; } & { '~path': string; }; }
|
|
10
|
+
|
|
11
|
+
export declare const defaultBaseUrl: string
|
|
12
|
+
|
|
13
|
+
export declare function createClient(options?: {
|
|
14
|
+
baseUrl?: string
|
|
15
|
+
token?: string
|
|
16
|
+
}): GofetchClient
|
|
17
|
+
|
|
18
|
+
export { treaty } from '@elysiajs/eden'
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/runtime.ts
|
|
2
|
+
import { treaty } from "@elysiajs/eden";
|
|
3
|
+
var defaultBaseUrl = "https://gofetch.blaqat.net";
|
|
4
|
+
function createClient(options = {}) {
|
|
5
|
+
return treaty(options.baseUrl ?? defaultBaseUrl, {
|
|
6
|
+
headers: options.token ? { Authorization: `Bearer ${options.token}` } : undefined
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
treaty,
|
|
11
|
+
defaultBaseUrl,
|
|
12
|
+
createClient
|
|
13
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@beepbox.net/gofetch-client",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Typesafe Eden treaty client for the gofetch API",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build:js": "rm -rf dist && bun build src/runtime.ts --outfile dist/index.js --target browser --external @elysiajs/eden",
|
|
20
|
+
"build:types": "bun run scripts/generate-types.ts",
|
|
21
|
+
"build": "bun run build:js && bun run build:types",
|
|
22
|
+
"prepublishOnly": "bun run build"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "^6.0.3"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@elysiajs/eden": ">=1.4.0",
|
|
29
|
+
"elysia": ">=1.4.0"
|
|
30
|
+
}
|
|
31
|
+
}
|