1 | import { FetchOptions } from './types';
|
2 | interface ClientOptions {
|
3 | token: string;
|
4 | teamId: string | null | undefined;
|
5 | integrationId: string;
|
6 | configurationId: string;
|
7 | slug: string;
|
8 | }
|
9 | export default class ZeitClient {
|
10 | options: ClientOptions;
|
11 | constructor(options: ClientOptions);
|
12 | fetch(path: string, options?: FetchOptions): Promise<import("node-fetch").Response>;
|
13 | fetchAndThrow(path: string, options: FetchOptions): Promise<any>;
|
14 | getMetadata(): Promise<any>;
|
15 | setMetadata(data: object): Promise<any>;
|
16 | ensureSecret(namePrefix: string, value: string): Promise<string>;
|
17 | upsertEnv(projectId: string, name: string, secretName: string): Promise<void>;
|
18 | removeEnv(projectId: string, name: string): Promise<void>;
|
19 | addConfigurationToProject(projectId: string): Promise<void>;
|
20 | removeConfigurationFromProject(projectId: string): Promise<void>;
|
21 | }
|
22 | export {};
|