// tools/browser/profiles/types.ts
function transformProfile(api) {
  return {
    id: api.id,
    name: api.name,
    repoId: api.repo_id,
    cookieDomains: api.cookie_domains,
    lastUsedAt: api.last_used_at,
    createdAt: api.created_at,
    updatedAt: api.updated_at
  };
}
function transformCreateInput(input) {
  return {
    name: input.name,
    repo_id: input.repoId
  };
}
function transformSession(api) {
  return {
    sessionId: api.session_id,
    debugUrl: api.debug_url || ""
  };
}
function transformSaveInput(input) {
  return {
    session_id: input.sessionId,
    profile_id: input.profileId
  };
}
function transformStateResponse(api) {
  return {
    profileId: api.profile_id,
    stateUrl: api.state_url,
    expiresIn: api.expires_in
  };
}

export {
  transformProfile,
  transformCreateInput,
  transformSession,
  transformSaveInput,
  transformStateResponse
};
//# sourceMappingURL=chunk-2AMEQAO2.js.map