2026-03-11 23:33:43 +00:00
|
|
|
/**
|
|
|
|
|
* @clawd/auth-runtime
|
|
|
|
|
*
|
2026-03-17 00:17:46 +00:00
|
|
|
* Shared auth runtime for OpenClaw skills.
|
2026-03-11 23:33:43 +00:00
|
|
|
*
|
2026-03-17 00:17:46 +00:00
|
|
|
* Primary API — just use the client:
|
|
|
|
|
*
|
|
|
|
|
* import { createSkillClient } from '@clawd/auth-runtime';
|
|
|
|
|
* const client = createSkillClient();
|
|
|
|
|
* const res = await client.post('/ecom/tasks/scrape', payload);
|
2026-03-11 23:33:43 +00:00
|
|
|
*/
|
2026-03-17 00:17:46 +00:00
|
|
|
export { createSkillClient, SkillClient } from './client.js';
|
|
|
|
|
export type { SkillClientOptions } from './client.js';
|
2026-03-19 22:42:07 +00:00
|
|
|
export { createEnvConfig, fetchSessionJson, getAccessToken, refreshAccessToken, isRetryableSessionError, requestApiWithAutoRefresh, } from './auth.js';
|
|
|
|
|
export { requestApi } from './http.js';
|
2026-03-18 23:37:56 +00:00
|
|
|
export type { EnvConfig, SessionResponse, ClientConfig, CachedTokenData, ApiResponse, HttpMethod, } from './types.js';
|
2026-03-11 23:33:43 +00:00
|
|
|
//# sourceMappingURL=index.d.ts.map
|