import {
  require_workflow_definition_runtime
} from "../chunk-43GJY2EB.js";
import {
  authorize,
  createApiClient,
  createApiHandle,
  expand
} from "../chunk-6AO46HG5.js";
import "../chunk-YPSWSI3M.js";

// src/apis/workflow-definition.ts
var loadDefinition = () => {
  const mod = require_workflow_definition_runtime();
  return expand(mod.default ?? mod);
};
var _instance = null;
var resolve = () => {
  if (!_instance) {
    const def = loadDefinition();
    _instance = createApiClient({ definition: def, apiName: "workflowDefinition" });
  }
  return _instance;
};
var _handle = createApiHandle({
  resolveClient: resolve,
  createClient: () => createApiClient({ definition: loadDefinition(), apiName: "workflowDefinition" }),
  apiName: "workflowDefinition"
});
var getClient = _handle.getClient;
var createClient = _handle.createClient;
var workflowDefinition = _handle;
export {
  authorize,
  createClient,
  getClient,
  workflowDefinition
};
