kintone-as-code
Version:
A CLI tool for managing kintone applications as code with type-safe TypeScript schemas
17 lines • 690 B
TypeScript
import { Schema as S } from 'effect';
import type { Config as AppConfig, AuthConfig } from '../types.js';
export declare const AuthConfigSchema: S.Union<[S.Struct<{
baseUrl: S.filter<typeof S.String>;
username: S.filter<typeof S.String>;
password: S.filter<typeof S.String>;
}>, S.Struct<{
baseUrl: S.filter<typeof S.String>;
apiToken: S.filter<typeof S.String>;
}>]>;
/**
* Parse authentication configuration from environment variables
* @returns AuthConfig object with either password or API token authentication
*/
export declare function parseAuthConfig(): AuthConfig;
export declare function loadConfig(): Promise<AppConfig>;
//# sourceMappingURL=config.d.ts.map