mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
137 lines
5.5 KiB
TypeScript
137 lines
5.5 KiB
TypeScript
import type {
|
|
RESTDeleteAPIApplicationEmojiResult,
|
|
RESTGetAPIApplicationCommandResult,
|
|
RESTGetAPIApplicationCommandsQuery,
|
|
RESTGetAPIApplicationCommandsResult,
|
|
RESTGetAPIApplicationEmojiResult,
|
|
RESTGetAPIApplicationEmojisResult,
|
|
RESTGetAPIApplicationGuildCommandResult,
|
|
RESTGetAPIApplicationGuildCommandsQuery,
|
|
RESTGetAPIApplicationGuildCommandsResult,
|
|
RESTGetAPIApplicationRoleConnectionMetadataResult,
|
|
RESTGetAPIEntitlementResult,
|
|
RESTGetAPIEntitlementsQuery,
|
|
RESTGetAPIEntitlementsResult,
|
|
RESTGetAPIGuildApplicationCommandsPermissionsResult,
|
|
RESTGetAPISKUsResult,
|
|
RESTGetCurrentApplicationResult,
|
|
RESTPatchAPIApplicationCommandJSONBody,
|
|
RESTPatchAPIApplicationCommandResult,
|
|
RESTPatchAPIApplicationEmojiJSONBody,
|
|
RESTPatchAPIApplicationEmojiResult,
|
|
RESTPatchAPIApplicationGuildCommandJSONBody,
|
|
RESTPatchAPIApplicationGuildCommandResult,
|
|
RESTPatchCurrentApplicationJSONBody,
|
|
RESTPatchCurrentApplicationResult,
|
|
RESTPostAPIApplicationCommandsJSONBody,
|
|
RESTPostAPIApplicationCommandsResult,
|
|
RESTPostAPIApplicationEmojiJSONBody,
|
|
RESTPostAPIApplicationEmojiResult,
|
|
RESTPostAPIApplicationGuildCommandsJSONBody,
|
|
RESTPostAPIApplicationGuildCommandsResult,
|
|
RESTPostAPIEntitlementBody,
|
|
RESTPostAPIEntitlementResult,
|
|
RESTPutAPIApplicationCommandPermissionsJSONBody,
|
|
RESTPutAPIApplicationCommandsJSONBody,
|
|
RESTPutAPIApplicationCommandsResult,
|
|
RESTPutAPIApplicationGuildCommandsJSONBody,
|
|
RESTPutAPIApplicationGuildCommandsResult,
|
|
RESTPutAPIApplicationRoleConnectionMetadataJSONBody,
|
|
RESTPutAPIApplicationRoleConnectionMetadataResult,
|
|
RESTPutAPIGuildApplicationCommandsPermissionsResult,
|
|
RestGetAPIApplicationActivityInstanceResult,
|
|
} from '../../types';
|
|
import type { RestArguments, RestArgumentsNoBody } from '../api';
|
|
|
|
export interface ApplicationRoutes {
|
|
applications: (id: string) => {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetCurrentApplicationResult>;
|
|
patch(args: RestArguments<RESTPatchCurrentApplicationJSONBody>): Promise<RESTPatchCurrentApplicationResult>;
|
|
'activity-instances': (id: string) => {
|
|
get(args?: RestArgumentsNoBody): Promise<RestGetAPIApplicationActivityInstanceResult>;
|
|
};
|
|
guilds: (id: string) => {
|
|
commands: {
|
|
get(
|
|
args?: RestArgumentsNoBody<RESTGetAPIApplicationGuildCommandsQuery>,
|
|
): Promise<RESTGetAPIApplicationGuildCommandsResult>;
|
|
post(
|
|
args: RestArguments<RESTPostAPIApplicationGuildCommandsJSONBody>,
|
|
): Promise<RESTPostAPIApplicationGuildCommandsResult>;
|
|
put(
|
|
args?: RestArguments<RESTPutAPIApplicationGuildCommandsJSONBody>,
|
|
): Promise<RESTPutAPIApplicationGuildCommandsResult>;
|
|
permissions: {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
|
|
};
|
|
(
|
|
id: string,
|
|
): {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIApplicationGuildCommandResult>;
|
|
patch(
|
|
args: RestArguments<RESTPatchAPIApplicationGuildCommandJSONBody>,
|
|
): Promise<RESTPatchAPIApplicationGuildCommandResult>;
|
|
delete(args?: RestArgumentsNoBody): Promise<undefined>;
|
|
permissions: {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
|
|
put(
|
|
args?: RestArguments<RESTPutAPIApplicationCommandPermissionsJSONBody>,
|
|
): Promise<RESTPutAPIGuildApplicationCommandsPermissionsResult>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
commands: {
|
|
get(args?: RestArgumentsNoBody<RESTGetAPIApplicationCommandsQuery>): Promise<RESTGetAPIApplicationCommandsResult>;
|
|
post(args: RestArguments<RESTPostAPIApplicationCommandsJSONBody>): Promise<RESTPostAPIApplicationCommandsResult>;
|
|
put(args?: RestArguments<RESTPutAPIApplicationCommandsJSONBody>): Promise<RESTPutAPIApplicationCommandsResult>;
|
|
(
|
|
id: string,
|
|
): {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIApplicationCommandResult>;
|
|
patch(
|
|
args: RestArguments<RESTPatchAPIApplicationCommandJSONBody>,
|
|
): Promise<RESTPatchAPIApplicationCommandResult>;
|
|
delete(args?: RestArgumentsNoBody): Promise<undefined>;
|
|
};
|
|
};
|
|
'role-connections': {
|
|
metadata: {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIApplicationRoleConnectionMetadataResult>;
|
|
put(
|
|
args: RestArguments<RESTPutAPIApplicationRoleConnectionMetadataJSONBody>,
|
|
): Promise<RESTPutAPIApplicationRoleConnectionMetadataResult>;
|
|
};
|
|
};
|
|
emojis: {
|
|
(
|
|
id: string,
|
|
): {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIApplicationEmojiResult>;
|
|
patch(args?: RestArguments<RESTPatchAPIApplicationEmojiJSONBody>): Promise<RESTPatchAPIApplicationEmojiResult>;
|
|
delete(args?: RestArgumentsNoBody): Promise<RESTDeleteAPIApplicationEmojiResult>;
|
|
};
|
|
get(
|
|
args?: RestArgumentsNoBody<Pick<RESTGetAPIApplicationEmojiResult, 'id'>>,
|
|
): Promise<RESTGetAPIApplicationEmojisResult>;
|
|
post(args?: RestArguments<RESTPostAPIApplicationEmojiJSONBody>): Promise<RESTPostAPIApplicationEmojiResult>;
|
|
};
|
|
entitlements: {
|
|
get(args?: RestArgumentsNoBody<RESTGetAPIEntitlementsQuery>): Promise<RESTGetAPIEntitlementsResult>;
|
|
post(args: RestArguments<RESTPostAPIEntitlementBody>): Promise<RESTPostAPIEntitlementResult>;
|
|
(
|
|
id: string,
|
|
): {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIEntitlementResult>;
|
|
delete(args?: RestArgumentsNoBody): Promise<undefined>;
|
|
consume: {
|
|
post(args?: RestArgumentsNoBody): Promise<undefined>;
|
|
};
|
|
};
|
|
};
|
|
skus: {
|
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPISKUsResult>;
|
|
};
|
|
};
|
|
}
|