This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src/api/application.ts

28 lines
695 B
TypeScript
Raw Normal View History

import { DefaultClient, PBResponse } from "./client";
export class Application {
pk: string;
name: string;
slug: string;
provider: number;
launch_url: string;
meta_launch_url: string;
meta_icon: string;
meta_description: string;
meta_publisher: string;
policies: string[];
constructor() {
throw Error();
}
static get(slug: string): Promise<Application> {
return DefaultClient.fetch<Application>(["core", "applications", slug]);
}
2020-11-30 22:49:33 +00:00
static list(filter?: { [key: string]: any }): Promise<PBResponse<Application>> {
return DefaultClient.fetch<PBResponse<Application>>(["core", "applications"], filter);
}
}