- Add Hose flow domain with OpenAPI & CloseAPI timeline and staff opinion parsing - Add E人工行为 and E人工意见 columns in approval runs Excel export - Add pre-flight scale/duration warning and smooth concurrency throttling (default concurrency 3, batch delay 150ms) - Add seal-use approval-runs flow diagnostic CLI command and tool - Support --to-downloads and --flow-concurrency CLI flags
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import type { KyInstance } from "ky";
|
|
import type { CorpConfig } from "../../core/config/types.js";
|
|
import {
|
|
createHoseOpenClient,
|
|
createHoseOpenClientWithCredentials,
|
|
type HoseOpenClientCredentials
|
|
} from "./open/client.js";
|
|
import {
|
|
createHoseCloseClient,
|
|
createHoseCloseClientWithCredentials,
|
|
getHoseCloseHeaders,
|
|
type HoseCloseClientCredentials
|
|
} from "./close/client.js";
|
|
|
|
// Re-exports with explicit open vs close distinction
|
|
export {
|
|
createHoseOpenClient,
|
|
createHoseOpenClientWithCredentials,
|
|
type HoseOpenClientCredentials
|
|
} from "./open/client.js";
|
|
|
|
export {
|
|
createHoseCloseClient,
|
|
createHoseCloseClientWithCredentials,
|
|
getHoseCloseHeaders,
|
|
type HoseCloseClientCredentials
|
|
} from "./close/client.js";
|
|
|
|
// Legacy aliases for backward compatibility
|
|
export type HoseClientCredentials = HoseCloseClientCredentials;
|
|
export const getHoseHeaders = getHoseCloseHeaders;
|
|
export const createHoseClientWithCredentials = createHoseCloseClientWithCredentials;
|
|
|
|
/**
|
|
* Default Hose client creator: uses Hose OpenAPI (hose-open).
|
|
* Bypasses row-level permission fences and requires no proxy staff ID.
|
|
*/
|
|
export async function createHoseClient(
|
|
corp: CorpConfig,
|
|
customHeaders?: Record<string, string>
|
|
): Promise<KyInstance> {
|
|
return createHoseOpenClient(corp, customHeaders);
|
|
}
|